From 4e7c8dac1080bbbddd5110b045d3416da74b2f74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cibrahim0814=E2=80=9D?= Date: Tue, 6 Aug 2019 17:19:19 -0700 Subject: [PATCH] set error check --- entrypoint.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index d06d3b9..b7b7193 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,4 +4,10 @@ set -eu #echo $1 +if [ -z "$1" ] + then + echo "No token supplied" + exit +fi + bash <(curl -s https://codecov.io/bash) -t $1 \ No newline at end of file