From 6fdf86f06bb549712b26284c3f760d30c4a93243 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cibrahim0814=E2=80=9D?= Date: Wed, 7 Aug 2019 11:11:16 -0700 Subject: [PATCH] test null condition --- entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 83c2df6..95af336 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,6 +4,11 @@ set -eu +if [ "x$1" == "x" ] || [ "x$2" == "x" ]; +then + echo "both variables are null" +fi + if [ -z "$1" ] || [ -z "$2" ]; then echo 'Need 2 parameter are not empty' fi