summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Browning <rlb@defaultvalue.org>2023-08-25 17:18:30 -0500
committerAndy Wingo <wingo@pobox.com>2024-06-20 15:35:48 +0200
commit08285b6894c2606ed576124fdeb82415bbc7873f (patch)
treefae6fb13f9b5ba313daa3ef4b6ce578375fc7e2a
parentd261308088790b7bc47869d4508f9c0322d1e552 (diff)
downloadguile-08285b6894c2606ed576124fdeb82415bbc7873f.tar.gz
check-guile.in: exit 2 on errors and direct output to stderr
Return 2 rather than 1 for errors so that 1 will be available for any future boolean tests (as with say grep). Direct error message to stderr rather than stdout. * check-guile.in: send error message to stderr and exit 2 (not 1).
-rw-r--r--check-guile.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/check-guile.in b/check-guile.in
index 68f353c6e..5a7beee8a 100644
--- a/check-guile.in
+++ b/check-guile.in
@@ -30,8 +30,8 @@ if [ -f "$guile" -a -x "$guile" ] ; then
echo "Testing $guile ..." "$@"
echo "with GUILE_LOAD_PATH=$GUILE_LOAD_PATH"
else
- echo "ERROR: Cannot execute $guile"
- exit 1
+ echo "ERROR: Cannot execute $guile" 1>&2
+ exit 2
fi
# documentation searching ignores GUILE_LOAD_PATH.