Skip to content

Commit

Permalink
Delete workdir if it does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
benedikt-schesch committed May 27, 2024
1 parent 9c65713 commit 5f6eb24
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,11 @@ if [ -d "repos" ]; then
find "repos/locks" -name "*.lock" -delete
fi

# Delete .workdir
chmod -R +w .workdir
rm -rf .workdir
# Check if .workdir exists and delete it
if [ -d .workdir ]; then
chmod -R +w .workdir
rm -rf .workdir
fi

python3 src/python/delete_cache_placeholders.py \
--cache_dir "$CACHE_DIR"
Expand Down

0 comments on commit 5f6eb24

Please sign in to comment.