diff options
| author | Ruslan Kiianchuk <ruslan.kiianchuk@gmail.com> | 2015-11-07 19:02:08 -0800 |
|---|---|---|
| committer | Ruslan Kiianchuk <ruslan.kiianchuk@gmail.com> | 2015-11-07 19:02:08 -0800 |
| commit | 62017cc5a39a0298a3227ebb6182fd83f28b5e22 (patch) | |
| tree | fbe5d59c3dbba5f98e104eaf240f7430a426e7e7 | |
| parent | 6f70ad579fef9eef027991dae6b1d4fc62510588 (diff) | |
| download | luarocks-62017cc5a39a0298a3227ebb6182fd83f28b5e22.tar.gz luarocks-62017cc5a39a0298a3227ebb6182fd83f28b5e22.tar.bz2 luarocks-62017cc5a39a0298a3227ebb6182fd83f28b5e22.zip | |
Use `command -v` for obtaining executable path.
Seems like `command -v` is defined by POSIX and therefore should be compatible with all POSIX OSes.
| -rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -71,7 +71,7 @@ EOF | |||
| 71 | # Helper functions | 71 | # Helper functions |
| 72 | 72 | ||
| 73 | find_program() { | 73 | find_program() { |
| 74 | which "$1" 2>/dev/null | 74 | command -v "$1" 2>/dev/null |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | die() { | 77 | die() { |
