From 92351ff5ccbb5ac032b300e6384df49008a880fc Mon Sep 17 00:00:00 2001 From: Bandie Date: Sat, 3 Nov 2018 01:01:17 +0100 Subject: [PATCH] clearer variable name; predefine writeout --- src/pam_panic_config/pam_panic_config | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pam_panic_config/pam_panic_config b/src/pam_panic_config/pam_panic_config index 2206b36..c53c0eb 100755 --- a/src/pam_panic_config/pam_panic_config +++ b/src/pam_panic_config/pam_panic_config @@ -258,12 +258,12 @@ esac config="$config\naccount requisite pam_panic.so" - # Write config file +writeout=0 if [ -f $CONFIGFILE ]; then ask "Configfile exist" "$CONFIGFILE exists. Overwrite it?" - ov=$? - case $ov in + writeout=$? + case $writeout in "0") echo -e "$config" > $CONFIGFILE ;; @@ -275,7 +275,7 @@ fi # Finished message clear -[ $ov -eq 0 ] && echo "Done! <3" || echo "Nothing done!