From d327cd91165e55c0c0397d5e90b09f922206d023 Mon Sep 17 00:00:00 2001 From: Lakr <25259084+Lakr233@users.noreply.github.com> Date: Tue, 2 Apr 2024 13:46:23 +0800 Subject: [PATCH] Update main.sh --- Resource/ApiTest/main.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Resource/ApiTest/main.sh b/Resource/ApiTest/main.sh index 01e066c..c09ee98 100755 --- a/Resource/ApiTest/main.sh +++ b/Resource/ApiTest/main.sh @@ -49,10 +49,9 @@ function cleanup { if [ $TEST_RESULT -ne 0 ]; then echo "[-] ** test failed **" exit 1 - else - echo "[+] ** test passed **" - exit 0 fi + + echo "[+] test passed" } trap cleanup EXIT