From 0d362b7f25680421a0b29f1ac940004304785921 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 7 Mar 2010 21:59:03 +0100 Subject: [PATCH] tests/lib.sh.test: Use return instead of exit in a subshell. --- tests/lib.sh.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/lib.sh.test b/tests/lib.sh.test index 171c7c2..e8d5053 100644 --- a/tests/lib.sh.test +++ b/tests/lib.sh.test @@ -9,7 +9,7 @@ which() { echo /bin/ls else echo no doesnt-exist in /usr/bin /bin /usr/sbin /sbin - (exit 1) + return 1 fi } echo stdout which @@ -22,7 +22,7 @@ which() { echo /bin/ls else echo no doesnt-exist in /usr/bin /bin /usr/sbin /sbin >&2 - (exit 1) + return 1 fi } echo stderr which -- 2.45.2