From f858f82ad1e81645da7023d45c7fa8d900e6a355 Mon Sep 17 00:00:00 2001 From: R1kaB3rN <100738684+R1kaB3rN@users.noreply.github.com> Date: Tue, 24 Dec 2024 16:08:24 -0800 Subject: [PATCH] tests: shellcheck lint --- tests/test_flock.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/test_flock.sh b/tests/test_flock.sh index 162d6feff..51aa95978 100644 --- a/tests/test_flock.sh +++ b/tests/test_flock.sh @@ -16,15 +16,12 @@ wait grep "exited with wait status" "$tmp1" # Ensure the 2nd proc didn't download the runtime -grep "\(latest\), please wait..." "$tmp2" -if [ $? -ne 0 ]; then +if ! grep "\(latest\), please wait..." "$tmp2"; then exit 1 fi -grep "exited with wait status" "$tmp2" - # Ensure the 2nd proc didn't download Proton grep "Downloading" "$tmp2" -if [ $? -ne 0 ]; then +if ! grep "exited with wait status" "$tmp2"; then exit 1 fi