From bfb2da519fbb01fd20ece50b737b537f02617646 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Tue, 31 Oct 2017 17:34:28 +0100 Subject: [PATCH] Exit code can be negative --- scripts/e2e-ci.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/e2e-ci.sh b/scripts/e2e-ci.sh index 1ae851360..e72d1a6ce 100755 --- a/scripts/e2e-ci.sh +++ b/scripts/e2e-ci.sh @@ -33,7 +33,7 @@ if [[ "${CIRCLE_BRANCH}" == "master" ]]; then # Determine exit code. result=$? - if [ "$result" -gt "0" ]; then + if [ "$result" -ne "0" ]; then echo "-- Failed e2e for $1 #$try --" # Try again until E2E_MAX_RETRIES is reached.