diff options
author | Rob Landley <rob@landley.net> | 2016-12-08 21:44:22 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2016-12-08 21:44:22 -0600 |
commit | 3701b517107fdfb62d13f6ec1ffa60c09ffdfc42 (patch) | |
tree | 06fd5f9db03fa0f5c8fb034d6b9bf751be9d80d5 /scripts | |
parent | a975952d885c47aeca013e76194142a47e96d49a (diff) | |
download | toybox-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).
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/make.sh | 2 |
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 |