From 6b14bed3c9ee0aef822a5fa6911604c7a081146b Mon Sep 17 00:00:00 2001 From: samson Date: Sun, 30 Dec 2018 03:09:26 +0800 Subject: [PATCH] Delete debug line of check_param_pair_by_pam function --- lib/utils.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/utils.sh b/lib/utils.sh index ac5c021..b716995 100644 --- a/lib/utils.sh +++ b/lib/utils.sh @@ -495,7 +495,6 @@ check_param_pair_by_pam() #CONDITION="-1" if [ -f "$LOCATION" ];then RESULT=$(sed -e '/^#/d' -e '/^[ \t][ \t]*#/d' -e 's/#.*$//' -e '/^$/d' $LOCATION | grep -w "$KEYWORD.*$OPTION" | wc -l) - echo $RESULT if [ "$RESULT" -eq 1 ]; then debug "$KEYWORD $OPTION is conf" cndt_value=$(sed -e '/^#/d' -e '/^[ \t][ \t]*#/d' -e 's/#.*$//' -e '/^$/d' $LOCATION | grep "$KEYWORD.*$OPTION" | tr "\t" " " | tr " " "\n" | sed -n "/$OPTION/p" | awk -F "=" '{print $2}')