diff options
author | Leah Rowe <leah@libreboot.org> | 2024-12-30 19:23:27 +0000 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-12-30 19:23:27 +0000 |
commit | 0c8107474691a6da793dbc6c6ac18c36ec7ec4a3 (patch) | |
tree | 474713c6408f8df66261482ff926c4fc7562c7d8 /build | |
parent | 6c7e3ce2d6e92e916a55eb96a86f1c67de590bfc (diff) |
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>
Diffstat (limited to 'build')
-rwxr-xr-x | build | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |