From c551e1bd45328fc6e9cc7c4192ac910e4f585787 Mon Sep 17 00:00:00 2001 From: Jarell <91372088+jarelllama@users.noreply.github.com> Date: Mon, 1 Apr 2024 21:00:12 +0800 Subject: [PATCH] Fix --- functions/test_functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/test_functions.sh b/functions/test_functions.sh index 35ef999d5..bb9f6b228 100644 --- a/functions/test_functions.sh +++ b/functions/test_functions.sh @@ -544,7 +544,7 @@ run_script() { # exit status of 1 or 0. check_and_exit() { # Check that all temporary files have been deleted after the run - if ! ls x?? &> /dev/null && ! ls ./*.tmp &> /dev/null; then + if ls x?? &> /dev/null || ls ./*.tmp &> /dev/null; then printf "\e[1m[warn] Temporary files were not removed:\e[0m\n" ls x?? ./*.tmp 2> /dev/null error=true