mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-18 22:15:46 +01:00
febdb46880
Approved by: re (marius)
25 lines
544 B
Bash
25 lines
544 B
Bash
#!/bin/sh
|
|
# $Id: report-tempfile,v 1.5 2013/09/02 18:03:13 tom Exp $
|
|
# Report results in a temporary-file.
|
|
# vile:shmode
|
|
|
|
case $retval in
|
|
$DIALOG_OK)
|
|
echo "Result: `cat $tempfile`";;
|
|
$DIALOG_CANCEL)
|
|
echo "Cancel pressed.";;
|
|
$DIALOG_HELP)
|
|
echo "Help pressed: `cat $tempfile`";;
|
|
$DIALOG_EXTRA)
|
|
echo "Extra button pressed.";;
|
|
$DIALOG_ITEM_HELP)
|
|
echo "Item-help button pressed: `cat $tempfile`";;
|
|
$DIALOG_ESC)
|
|
if test -s $tempfile ; then
|
|
cat $tempfile
|
|
else
|
|
echo "ESC pressed."
|
|
fi
|
|
;;
|
|
esac
|