diff options
Diffstat (limited to 'samples/form2')
| -rwxr-xr-x | samples/form2 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/samples/form2 b/samples/form2 index a005be3c2bf1..ab2fe430501a 100755 --- a/samples/form2 +++ b/samples/form2 @@ -1,5 +1,5 @@ #! /bin/sh -# $Id: form2,v 1.9 2010/01/13 10:53:11 tom Exp $ +# $Id: form2,v 1.12 2020/11/26 00:33:02 tom Exp $ . ./setup-vars @@ -16,7 +16,7 @@ returncode=0 while test $returncode != 1 && test $returncode != 250 do exec 3>&1 -value=`$DIALOG --ok-label "Submit" \ +returntext=`$DIALOG --ok-label "Submit" \ --backtitle "$backtitle" "$@" \ --form "Here is a possible piece of a configuration program." \ 0 0 10 \ @@ -52,7 +52,7 @@ value=`$DIALOG --ok-label "Submit" \ returncode=$? exec 3>&- -show=`echo "$value" |sed -e 's/^/ /'` +show=`echo "$returntext" |sed -e 's/^/ /'` case $returncode in $DIALOG_CANCEL) @@ -77,7 +77,7 @@ show=`echo "$value" |sed -e 's/^/ /'` $show" 0 0 ;; *) - echo "Return code was $returncode" + . ./report-button exit ;; esac |
