Skip to content

Commit

Permalink
build: skip non existing IB folder removal
Browse files Browse the repository at this point in the history
Typo would just check if the path was a non-empty-string instead of
checking if it's an actually existing folder.

Signed-off-by: Paul Spooren <[email protected]>
  • Loading branch information
aparcar committed Jul 18, 2022
1 parent 37d23df commit 3976cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asu/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def download_file(filename: str, dest: str = None):
job.connection.hdel(
f"worker:{job.worker_name}:last_build", target_subtarget
)
if cache / target_subtarget:
if (cache / target_subtarget).exists():
rmtree(cache / target_subtarget)
else:
log.debug("Keeping ImageBuilder for %s", target_subtarget)
Expand Down

0 comments on commit 3976cff

Please sign in to comment.