Skip to content

Commit

Permalink
only run rm if there is input
Browse files Browse the repository at this point in the history
Signed-off-by: Anton-4 <[email protected]>
  • Loading branch information
Anton-4 committed Jul 18, 2023
1 parent 425b3cf commit b82df28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/basic_nightly_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ zig version

# Remove everything in this dir except the tar and ci folder.
# We want to test like a user who would have downloaded the release, so we clean up all files from the repo checkout.
ls | grep -v "roc_nightly.*tar\.gz" | grep -v "^ci$" | xargs rm -rf
ls | grep -v "roc_nightly.*tar\.gz" | grep -v "^ci$" | xargs -r rm -rf

# decompress the tar
ls | grep "roc_nightly.*tar\.gz" | xargs tar -xzvf
Expand Down

0 comments on commit b82df28

Please sign in to comment.