diff options
| author | Roy Marples <roy@marples.name> | 2016-05-01 14:39:45 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2016-05-01 14:39:45 +0000 |
| commit | 145e88b2b297d77b131b441bd299755426a73003 (patch) | |
| tree | 2f74198d9b7e568efafff9f9cb9edf7e0106f115 /configure | |
| parent | 62b3d16d774ea3a208c2f9cbef7c8e1e63680b1c (diff) | |
| download | dhcpcd-145e88b2b297d77b131b441bd299755426a73003.tar.xz | |
Test exit status of which, not just stdout.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
