summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-05-01 14:39:45 +0000
committerRoy Marples <roy@marples.name>2016-05-01 14:39:45 +0000
commit145e88b2b297d77b131b441bd299755426a73003 (patch)
tree2f74198d9b7e568efafff9f9cb9edf7e0106f115 /configure
parent62b3d16d774ea3a208c2f9cbef7c8e1e63680b1c (diff)
downloaddhcpcd-145e88b2b297d77b131b441bd299755426a73003.tar.xz
Test exit status of which, not just stdout.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index e6603ff4..fc7b76c2 100755
--- a/configure
+++ b/configure
@@ -177,7 +177,7 @@ eval DATADIR="$DATADIR"
_which()
{
x="$(which "$1" 2>/dev/null)"
- if [ -n "$x" ]; then
+ if [ $? = 0 -a -n "$x" ]; then
echo "$x"
return 0
fi