diff options
Diffstat (limited to 'samples/form6')
| -rwxr-xr-x | samples/form6 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/samples/form6 b/samples/form6 index 8b5483f4f4c1..29195b9f8322 100755 --- a/samples/form6 +++ b/samples/form6 @@ -1,5 +1,5 @@ #! /bin/sh -# $Id: form6,v 1.5 2010/01/13 10:49:52 tom Exp $ +# $Id: form6,v 1.8 2020/11/26 00:31:55 tom Exp $ # form4 with --help-status . ./setup-vars @@ -17,7 +17,7 @@ returncode=0 while test $returncode != 1 && test $returncode != 250 do exec 3>&1 -value=`$DIALOG --ok-label "Submit" \ +returntext=`$DIALOG --ok-label "Submit" \ --help-status \ --help-button \ --item-help \ @@ -32,7 +32,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) @@ -64,7 +64,7 @@ $show" 10 40 $show" 10 40 ;; *) - echo "Return code was $returncode" + . ./report-button exit ;; esac |
