Skip to content

Commit

Permalink
try for loop
Browse files Browse the repository at this point in the history
Signed-off-by: Anton-4 <[email protected]>
  • Loading branch information
Anton-4 authored Jul 18, 2023
1 parent 574428b commit 8801fe6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ci/basic_nightly_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ 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$"
to_delete=$(ls | grep -v "roc_nightly.*tar\.gz" | grep -v "^ci$")

for file_or_dir in $to_delete
do
echo "Removing: $file_or_dir"
rm -rf "$file_or_dir"
done

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

0 comments on commit 8801fe6

Please sign in to comment.