From: Joey Hess Date: Fri, 5 Feb 2010 22:13:17 +0000 (-0500) Subject: Fix the hours_since function built into mr's shell library to not exit, but return... X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/01faa6757d7012e3b9126cc02e8ac10502864526?ds=inline;pf=code Fix the hours_since function built into mr's shell library to not exit, but return a true/false exit status. This allows it to be used outside of skip tests. --- diff --git a/debian/changelog b/debian/changelog index 2b5ca5b..62cef2a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +mr (0.48) unstable; urgency=low + + * Fix the hours_since function built into mr's shell library to + not exit, but return a true/false exit status. This allows it to be + used outside of skip tests. + + -- Joey Hess Fri, 05 Feb 2010 17:12:01 -0500 + mr (0.47) unstable; urgency=low * Pass -L to curl to allow it to follow redirects when bootstrapping. diff --git a/mr b/mr index 7224a04..1f01803 100755 --- a/mr +++ b/mr @@ -1547,10 +1547,10 @@ lib = fi delta=`perl -wle 'print -f shift() ? int((-M _) * 24) : 9999' "$flagfile"` if [ "$delta" -lt "$2" ]; then - exit 0 + return 1 else touch "$flagfile" - exit 1 + return 0 fi }