Skip to content

Commit a253bd1

Browse files
committed
Auto-backup files prior to running the removal script and don't override backups.
1 parent e5970d6 commit a253bd1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docker/android/scripts/build-system.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ def remove_makefile_tests(path, args, *_):
8282

8383

8484
def remove_tests(path, args, processor):
85-
if not args.disable_backup:
85+
if os.path.exists(path + '.bak'):
86+
restore(path, args)
87+
elif not args.disable_backup:
8688
backup(path, args)
8789
processor(path, args)
8890

0 commit comments

Comments
 (0)