From 4cb0418af745b28bff4117632191f4df6626990b Mon Sep 17 00:00:00 2001 From: Samson-W Date: Mon, 19 Aug 2019 20:28:04 +0800 Subject: [PATCH] Fix a bug for check_param_pair_by_pam method. --- lib/utils.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/utils.sh b/lib/utils.sh index 7ce6d7e..adb27f3 100644 --- a/lib/utils.sh +++ b/lib/utils.sh @@ -603,6 +603,9 @@ check_param_pair_by_pam() if [ "$cndt_value" "-$COMPARE" "$CONDITION" ]; then debug "$cndt_value -$COMPARE $CONDITION is ok" FNRET=0 + elif [ "$cndt_value" -eq 0 ]; then + debug "$cndt_value -eq 0, is not ok" + FNRET=5 else debug "$cndt_value -$COMPARE $CONDITION is not ok" FNRET=5