diff options
Diffstat (limited to 'samples/report-edit')
| -rw-r--r-- | samples/report-edit | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/samples/report-edit b/samples/report-edit index 37e3eb088570..d2343b9ff52a 100644 --- a/samples/report-edit +++ b/samples/report-edit @@ -1,11 +1,11 @@ #!/bin/sh -# $Id: report-edit,v 1.4 2012/06/29 09:29:41 tom Exp $ +# $Id: report-edit,v 1.8 2020/11/26 00:18:32 tom Exp $ # Report results from editing. # vile:shmode -case $retval in +case ${returncode:-0} in $DIALOG_OK) - diff -c $input $output + diff -c "${input:-input}" "${output:-output}" echo "OK" ;; $DIALOG_CANCEL) @@ -16,8 +16,12 @@ case $retval in echo "Extra pressed";; $DIALOG_ITEM_HELP) echo "Item-help button pressed.";; + $DIALOG_TIMEOUT) + echo "Timeout expired.";; $DIALOG_ERROR) echo "ERROR!";; $DIALOG_ESC) echo "ESC pressed.";; + *) + echo "Return code was $returncode";; esac |
