Delete debug line of check_param_pair_by_pam function

This commit is contained in:
samson 2018-12-30 03:09:26 +08:00
parent 4fd8bc1c29
commit 6b14bed3c9
1 changed files with 0 additions and 1 deletions

View File

@ -495,7 +495,6 @@ check_param_pair_by_pam()
#CONDITION="-1" #CONDITION="-1"
if [ -f "$LOCATION" ];then if [ -f "$LOCATION" ];then
RESULT=$(sed -e '/^#/d' -e '/^[ \t][ \t]*#/d' -e 's/#.*$//' -e '/^$/d' $LOCATION | grep -w "$KEYWORD.*$OPTION" | wc -l) 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 if [ "$RESULT" -eq 1 ]; then
debug "$KEYWORD $OPTION is conf" 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}') 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}')