aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-12-08 21:44:22 -0600
committerRob Landley <rob@landley.net>2016-12-08 21:44:22 -0600
commit3701b517107fdfb62d13f6ec1ffa60c09ffdfc42 (patch)
tree06fd5f9db03fa0f5c8fb034d6b9bf751be9d80d5
parenta975952d885c47aeca013e76194142a47e96d49a (diff)
downloadtoybox-3701b517107fdfb62d13f6ec1ffa60c09ffdfc42.tar.gz
Workaround for Centos' "which" complaining if it can't find the command
(instead of just producing no output on stdout like everybody else).
-rwxr-xr-xscripts/make.sh2
1 files changed, 1 insertions, 1 deletions
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