1#!/bin/sh 2# $Id: report-tempfile,v 1.5 2013/09/02 18:03:13 tom Exp $ 3# Report results in a temporary-file. 4# vile:shmode 5 6case $retval in 7 $DIALOG_OK) 8 echo "Result: `cat $tempfile`";; 9 $DIALOG_CANCEL) 10 echo "Cancel pressed.";; 11 $DIALOG_HELP) 12 echo "Help pressed: `cat $tempfile`";; 13 $DIALOG_EXTRA) 14 echo "Extra button pressed.";; 15 $DIALOG_ITEM_HELP) 16 echo "Item-help button pressed: `cat $tempfile`";; 17 $DIALOG_ESC) 18 if test -s $tempfile ; then 19 cat $tempfile 20 else 21 echo "ESC pressed." 22 fi 23 ;; 24esac 25