diff options
-rwxr-xr-x | examples/mkevents | 2 | ||||
-rwxr-xr-x | examples/mkhours | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/mkevents b/examples/mkevents index 0c25233..4386486 100755 --- a/examples/mkevents +++ b/examples/mkevents @@ -40,7 +40,7 @@ if [ -f $outfile ]; then errorcode=0 diff -ruN $outfile $outfile~ || errorcode=$? case $errorcode in - 0) echo "No changes from previous version"; exit;; + 0) echo "No changes from previous version"; rm $outfile~; exit;; 1) printf "Above are changes from previous version. ";; *) echo >&2 "ERROR: internal diff error!"; exit $errorcode;; esac diff --git a/examples/mkhours b/examples/mkhours index 1e0168a..d9c8459 100755 --- a/examples/mkhours +++ b/examples/mkhours @@ -40,7 +40,7 @@ if [ -f $outfile ]; then errorcode=0 diff -ruN $outfile $outfile~ || errorcode=$? case $errorcode in - 0) echo "No changes from previous version"; exit;; + 0) echo "No changes from previous version"; rm $outfile~; exit;; 1) printf "Above are changes from previous version. ";; *) echo >&2 "ERROR: internal diff error!"; exit $errorcode;; esac |