diff --git a/src/python/replay_merge.py b/src/python/replay_merge.py index 77027c3837..fc07f45c6c 100755 --- a/src/python/replay_merge.py +++ b/src/python/replay_merge.py @@ -95,9 +95,12 @@ def merge_replay( logger.info( f"workdir {WORKDIR_DIRECTORY / workdir} already exists for idx: {merge_idx}" ) - answer = input( - f"workdir {workdir} exists for idx: {merge_idx}. Delete it? (y/n)" - ) + if delete_workdir: + answer = "y" + else: + answer = input( + f"workdir {workdir} exists for idx: {merge_idx}. Delete it? (y/n)" + ) if answer == "y": shutil.rmtree(WORKDIR_DIRECTORY / workdir) else: