mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-25 11:37:56 +00:00
2a3e3873a1
Level up WARNS
25 lines
520 B
Bash
25 lines
520 B
Bash
#!/bin/sh
|
|
# $Id: report-string,v 1.3 2012/06/29 09:32:17 tom Exp $
|
|
# Report result passed in a string $RESULT
|
|
# vile:shmode
|
|
|
|
case $retval in
|
|
$DIALOG_OK)
|
|
echo "Result is $RESULT";;
|
|
$DIALOG_CANCEL)
|
|
echo "Cancel pressed.";;
|
|
$DIALOG_HELP)
|
|
echo "Help pressed ($RESULT).";;
|
|
$DIALOG_EXTRA)
|
|
echo "Extra button pressed.";;
|
|
$DIALOG_ITEM_HELP)
|
|
echo "Item-help button pressed.";;
|
|
$DIALOG_ESC)
|
|
if test -n "$RESULT" ; then
|
|
echo "$RESULT"
|
|
else
|
|
echo "ESC pressed."
|
|
fi
|
|
;;
|
|
esac
|