Skip to content

Commit 3976cff

Browse files
committed
build: skip non existing IB folder removal
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 <mail@aparcar.org>
1 parent 37d23df commit 3976cff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

asu/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ def download_file(filename: str, dest: str = None):
396396
job.connection.hdel(
397397
f"worker:{job.worker_name}:last_build", target_subtarget
398398
)
399-
if cache / target_subtarget:
399+
if (cache / target_subtarget).exists():
400400
rmtree(cache / target_subtarget)
401401
else:
402402
log.debug("Keeping ImageBuilder for %s", target_subtarget)

0 commit comments

Comments
 (0)