diff options
author | Paul Spooren <mail@aparcar.org> | 2020-08-09 13:42:09 -1000 |
---|---|---|
committer | Paul Spooren <mail@aparcar.org> | 2020-08-20 15:54:54 -1000 |
commit | c4a4e43e2e97065dcda53c9ac7ee49c05171dbd8 (patch) | |
tree | 5f2e877793a63c9e639410ce868d2f755f5db695 /build/i18n-init.sh | |
parent | 03253c23090a9928c15ab8d80c18b734e3e814ed (diff) |
treewide: replace `which` with `command -v`
Fix shellcheck SC2230
> which is non-standard. Use builtin 'command -v' instead.
Once applied to everything concerning OpenWrt we can disable the busybox
feature `which` and save 3.8kB.
Signed-off-by: Paul Spooren <mail@aparcar.org>
Diffstat (limited to 'build/i18n-init.sh')
-rwxr-xr-x | build/i18n-init.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/i18n-init.sh b/build/i18n-init.sh index b20fbc3347..94abdfcd56 100755 --- a/build/i18n-init.sh +++ b/build/i18n-init.sh @@ -4,7 +4,7 @@ PATTERN=$1 SCM= [ -d .svn ] && SCM="svn" -git=$( which git 2>/dev/null ) +git=$( command -v git 2>/dev/null ) [ "$git" ] && "$git" status >/dev/null && SCM="git" [ -z "$SCM" ] && { |