diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2021-02-26 09:05:35 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2021-02-26 09:05:35 +0000 |
| commit | 01b7bcd408fd9e9dc9088b1df5761fcc0971d7e1 (patch) | |
| tree | 593f2e62b1846058a020ffcecb0ef93eb7ac2153 /samples/form2 | |
| parent | 4dccdce4191d6e2bc3ba9f782b0fe1aa46b743e3 (diff) | |
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 |
