From: Steven Baltakatei Sandoval Date: Sun, 28 Jun 2020 23:13:14 +0000 (+0000) Subject: fix(bkgpslog):Minor checkdir edge case for no argument X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02.git/commitdiff_plain/bcf09dcc2b3d98c0ef89d1687dc4c8c90d0d6ac0?ds=sidebyside;hp=0b3dde0530513a3027de7d5f81a4386a118fce5c fix(bkgpslog):Minor checkdir edge case for no argument --- diff --git a/exec/bkgpslog b/exec/bkgpslog index 9a3744a..1b71175 100755 --- a/exec/bkgpslog +++ b/exec/bkgpslog @@ -97,8 +97,10 @@ checkdir() { dirRollCall["$arg"]="true"; #echo "DEBUG:dirRollCall[\"$arg\"]:"${dirRollCall["$arg"]} if ! [ "$returnState" = "false" ]; then returnState="true"; fi - else + elif [ "$arg" = "" ]; then dirRollCall["$arg"]="false"; returnState="false"; + else + returnState="false"; fi done