From 6905df41d5aaa0cd467dc9a5ee76d178224c2e8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cibrahim0814=E2=80=9D?= Date: Wed, 7 Aug 2019 11:44:00 -0700 Subject: [PATCH] correct conditionals --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 42d45c5..9f8c212 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -6,15 +6,15 @@ if [ $# -eq 0 ] then echo "inside first if" bash <(curl -s https://codecov.io/bash) -elif [ "x$INPUT_TOKEN" == "x" ] && [ "x$INPUT_FILE" == "x" ] +elif [ "x$INPUT_TOKEN" != "x" ] && [ "x$INPUT_FILE" != "x" ] then echo "inside both" bash <(curl -s https://codecov.io/bash) -t $INPUT_TOKEN -f $INPUT_FILE -elif [ "x$INPUT_TOKEN" == "x" ] +elif [ "x$INPUT_TOKEN" != "x" ] then echo "inside token" bash <(curl -s https://codecov.io/bash) -t $INPUT_TOKEN -elif [ "x$INPUT_FILE" == "x" ] +elif [ "x$INPUT_FILE" != "x" ] then echo "inside file" bash <(curl -s https://codecov.io/bash) -f $INPUT_FILE