1#!/bin/sh 2# $Id: report-tempfile,v 1.4 2012/06/29 09:29:47 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.";; 13 $DIALOG_EXTRA) 14 echo "Extra button pressed.";; 15 $DIALOG_ITEM_HELP) 16 echo "Item-help button pressed.";; 17 $DIALOG_ESC) 18 if test -s $tempfile ; then 19 cat $tempfile 20 else 21 echo "ESC pressed." 22 fi 23 ;; 24esac 25