From 2467cad537ad521aeed5dc70c79d87a0d386c0ac Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 5 Mar 2006 17:28:42 +0000 Subject: Set SHELL, if not already set, in order to avoid failure when `make check' is run through debuild; dircolors would fail due to lack of $SHELL. Reported by Sven Joachim. --- tests/help-version | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/help-version b/tests/help-version index c96ca7e47..b3930626d 100755 --- a/tests/help-version +++ b/tests/help-version @@ -4,6 +4,14 @@ test "$VERBOSE" = yes && set -x +# Ensure that $SHELL is set to *some* value. +# This is required for dircolors, which would fail e.g., when +# invoked via debuild (which removes SHELL from the environment). +if test "x$SHELL" = x; then + SHELL=/bin/sh + export SHELL +fi + expected_failure_status_nohup=127 expected_failure_status_printenv=2 expected_failure_status_tty=3 -- cgit v1.2.3-70-g09d2