mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-18 14:12:44 +02:00
use command -v instead of which
which is a non-standard command, whereas command is part of posix Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -25,7 +25,7 @@ main()
|
||||
spath="script/$1"; shcmd="shift 1"
|
||||
[ "${1#-*}" != "$1" ] && spath="script/trees" && shcmd=":"
|
||||
|
||||
for g in "which git" "git config --global user.name" \
|
||||
for g in "command -v git" "git config --global user.name" \
|
||||
"git config --global user.email" "git_init"; do
|
||||
eval "$g 1>/dev/null 2>/dev/null || $err \"Unconfigured: $g\""
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user