1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00

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).
This commit is contained in:
Rob Browning 2023-08-25 17:18:30 -05:00 committed by Andy Wingo
parent d261308088
commit 08285b6894

View file

@ -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.