X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=handlers%2Feasydialog.sh;h=0113d9cb18885b997916996245d14d67064318df;hb=7e82705e20a31d3bbcf30794386294434e34e5c2;hp=ff3659f25583852f6eca558257e75ecb5fc661c9;hpb=647a368ffdcdfc0b9853a1e4769208559ed9347e;p=matthijs%2Fupstream%2Fbackupninja-vserver.git diff --git a/handlers/easydialog.sh b/handlers/easydialog.sh index ff3659f..0113d9c 100644 --- a/handlers/easydialog.sh +++ b/handlers/easydialog.sh @@ -33,7 +33,7 @@ setDimension() { booleanBox() { $DIALOG --backtitle "$BACKTITLE" --title "$1" \ - --yesno "$2" $HEIGHT $WIDTH + `[ "$3" == no ] && echo '--defaultno'` --yesno "$2" $HEIGHT $WIDTH } msgBox() { @@ -244,6 +244,7 @@ formDisplay() { ) | xargs $DIALOG 2> $temp local status=$? + REPLY= if [ $status = 0 ]; then IFS=$'' REPLY=`cat $temp`