From 3701b517107fdfb62d13f6ec1ffa60c09ffdfc42 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 8 Dec 2016 21:44:22 -0600 Subject: Workaround for Centos' "which" complaining if it can't find the command (instead of just producing no output on stdout like everybody else). --- scripts/make.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/make.sh b/scripts/make.sh index 23edc195..6b853840 100755 --- a/scripts/make.sh +++ b/scripts/make.sh @@ -18,7 +18,7 @@ UNSTRIPPED="generated/unstripped/$(basename "$OUTNAME")" if [ -z "$SED" ] then - [ ! -z "$(which gsed)" ] && SED=gsed || SED=sed + [ ! -z "$(which gsed 2>/dev/null)" ] && SED=gsed || SED=sed fi # Respond to V= by echoing command lines as well as running them -- cgit v1.2.3