Skip to content

Commit

Permalink
Auto-backup files prior to running the removal script and don't overr…
Browse files Browse the repository at this point in the history
…ide backups.
  • Loading branch information
Alexhuszagh committed Oct 17, 2022
1 parent e5970d6 commit a253bd1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/android/scripts/build-system.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ def remove_makefile_tests(path, args, *_):


def remove_tests(path, args, processor):
if not args.disable_backup:
if os.path.exists(path + '.bak'):
restore(path, args)
elif not args.disable_backup:
backup(path, args)
processor(path, args)

Expand Down

0 comments on commit a253bd1

Please sign in to comment.