diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-09-18 08:00:13 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-09-18 08:00:13 +0200 |
| commit | 11a966eeb4fcd88e251fb9d77a18d6b67c36dd61 (patch) | |
| tree | 95a1486b7c04710ec968fe87e08ea7e559b658d8 /configure.sh | |
| parent | 65878aa07452b45c3f17c3ab15508400edd46476 (diff) | |
| download | nissy-core-11a966eeb4fcd88e251fb9d77a18d6b67c36dd61.tar.gz nissy-core-11a966eeb4fcd88e251fb9d77a18d6b67c36dd61.zip | |
Replace which(1) with posix command -v in configure.sh
Diffstat (limited to 'configure.sh')
| -rwxr-xr-x | configure.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.sh b/configure.sh index 06688e8..fcf2dce 100755 --- a/configure.sh +++ b/configure.sh | |||
| @@ -21,7 +21,7 @@ detectarch() { | |||
| 21 | } | 21 | } |
| 22 | 22 | ||
| 23 | validatecc() { | 23 | validatecc() { |
| 24 | if ! (which "$CC" >/dev/null 2>&1) ; then | 24 | if ! (command -v "$CC" >/dev/null 2>&1) ; then |
| 25 | echo "Error: compiler '$CC' not found" | 25 | echo "Error: compiler '$CC' not found" |
| 26 | exit 1 | 26 | exit 1 |
| 27 | fi | 27 | fi |
