From b82df28b464f3d7776de072b904fc8e2addbeb2b Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Tue, 18 Jul 2023 16:15:56 +0200 Subject: [PATCH] only run rm if there is input Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> --- ci/basic_nightly_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/basic_nightly_test.sh b/ci/basic_nightly_test.sh index 8a5285f814b..08e056bfd8f 100755 --- a/ci/basic_nightly_test.sh +++ b/ci/basic_nightly_test.sh @@ -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