clearer variable name; predefine writeout
This commit is contained in:
parent
b17f23390f
commit
92351ff5cc
@ -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?"
|
||||||
|
Loading…
Reference in New Issue
Block a user