summaryrefslogtreecommitdiff
path: root/contrib/dialog/samples/programbox2
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2018-10-20 20:49:46 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2018-10-20 20:49:46 +0000
commitf4f33ea0c752ff0f9bfad34991d5bbb54e71133d (patch)
tree40442a08324132e6e11845ccaa4f3e675edc8a4f /contrib/dialog/samples/programbox2
parentb0dee75e6460644cb00f57245a3e797626a0083f (diff)
parent4dccdce4191d6e2bc3ba9f782b0fe1aa46b743e3 (diff)
downloadsrc-test2-f4f33ea0c752ff0f9bfad34991d5bbb54e71133d.tar.gz
src-test2-f4f33ea0c752ff0f9bfad34991d5bbb54e71133d.zip
Notes
Diffstat (limited to 'contrib/dialog/samples/programbox2')
-rwxr-xr-xcontrib/dialog/samples/programbox27
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/dialog/samples/programbox2 b/contrib/dialog/samples/programbox2
index 63f87df276b2..d55c497b64c1 100755
--- a/contrib/dialog/samples/programbox2
+++ b/contrib/dialog/samples/programbox2
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: programbox2,v 1.1 2011/03/02 01:25:31 tom Exp $
+# $Id: programbox2,v 1.3 2018/06/17 20:45:25 tom Exp $
. ./setup-vars
@@ -11,9 +11,12 @@ while true
do
read text
test -z "$text" && break
-ls -ld "$text"
+ls -ld "$text" || break
sleep 0.1
done <$tempfile
) |
$DIALOG --title "PROGRAMBOX" "$@" --programbox "ProgramBox" 20 70
+
+retval=$?
+. ./report-button