From 4b3f2da7282f19209a553f7093186c2361763208 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cibrahim0814=E2=80=9D?= Date: Wed, 7 Aug 2019 11:18:32 -0700 Subject: [PATCH] use default args --- entrypoint.sh | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index aaa2f54..9212ad6 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -5,18 +5,11 @@ set -eu echo $INPUT_FILE -if [ "x$1" == "x" ] || [ "x$2" == "x" ]; +if [ "x$INPUT_FILE" == "x" ] || [ "x$INPUT_TOKEN" == "x" ]; then - echo "both variables are null" + echo "some variables are null" fi -if [ -z "$1" ] || [ -z "$2" ]; then - echo 'Need 2 parameter are not empty' -fi - - -echo $1 -echo $2 if [ $# -eq 0 ] then