From 01faa6757d7012e3b9126cc02e8ac10502864526 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 5 Feb 2010 17:13:17 -0500 Subject: [PATCH] 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. --- debian/changelog | 8 ++++++++ mr | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) 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 } -- 2.39.5