From c4a4e43e2e97065dcda53c9ac7ee49c05171dbd8 Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Sun, 9 Aug 2020 13:42:09 -1000 Subject: 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 --- build/i18n-init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build') 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" ] && { -- cgit v1.2.3