From 8801fe6b8da7eaaa4f3e1cad5c8a8053f8c5ebbd Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Tue, 18 Jul 2023 19:51:42 +0200 Subject: [PATCH] try for loop Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> --- ci/basic_nightly_test.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ci/basic_nightly_test.sh b/ci/basic_nightly_test.sh index b93d05b1f5d..faeb9a1615e 100755 --- a/ci/basic_nightly_test.sh +++ b/ci/basic_nightly_test.sh @@ -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