From bcf09dcc2b3d98c0ef89d1687dc4c8c90d0d6ac0 Mon Sep 17 00:00:00 2001 From: Steven Baltakatei Sandoval Date: Sun, 28 Jun 2020 23:13:14 +0000 Subject: [PATCH 1/1] fix(bkgpslog):Minor checkdir edge case for no argument --- exec/bkgpslog | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.30.2