add default answer and add compliance with shellcheck

This commit is contained in:
Simon Vieille 2019-07-31 20:49:59 +02:00
commit 4398347162
Signed by: deblan
GPG key ID: 03383D15A1D31745
3 changed files with 6 additions and 4 deletions

View file

@ -99,7 +99,7 @@ chmod 600 "$TMP_FILE"
whiptail --textbox "$TMP_FILE" 25 80
rm "$TMP_FILE"
CONTINUE="$(form_yes_no -t "$TITLE" -l "Do you confirm?")"
CONTINUE="$(form_yes_no -t "$TITLE" -l "Do you confirm?" -n)"
if [ "$CONTINUE" = "no" ]; then
printf "Aborded!\\n"