clearer variable name; predefine writeout

This commit is contained in:
Bandie 2018-11-03 01:01:17 +01:00
parent b17f23390f
commit 92351ff5cc
Signed by: Bandie
GPG Key ID: C1E133BC65A822DD

View File

@ -258,12 +258,12 @@ esac
config="$config\naccount requisite pam_panic.so" config="$config\naccount requisite pam_panic.so"
# Write config file # Write config file
writeout=0
if [ -f $CONFIGFILE ]; then if [ -f $CONFIGFILE ]; then
ask "Configfile exist" "$CONFIGFILE exists. Overwrite it?" ask "Configfile exist" "$CONFIGFILE exists. Overwrite it?"
ov=$? writeout=$?
case $ov in case $writeout in
"0") "0")
echo -e "$config" > $CONFIGFILE echo -e "$config" > $CONFIGFILE
;; ;;
@ -275,7 +275,7 @@ fi
# Finished message # Finished message
clear clear
[ $ov -eq 0 ] && echo "Done! <3" || echo "Nothing done! </3" [ $writeout -eq 0 ] && echo "Done! <3" || echo "Nothing done! </3"
echo -e "\n" echo -e "\n"
echo "What now?" echo "What now?"