diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-12-03 14:45:14 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-12-03 14:45:14 +0100 |
commit | 932473493220d48457aeb547018d040138c1e161 (patch) | |
tree | 0c8632da5dca8980b2c09dcd2196640a2a166de3 | |
parent | equery: Set nocolor for piping to after options are parsed (diff) | |
download | gentoolkit-932473493220d48457aeb547018d040138c1e161.tar.gz gentoolkit-932473493220d48457aeb547018d040138c1e161.tar.bz2 gentoolkit-932473493220d48457aeb547018d040138c1e161.zip |
ebump: Replace which(1) with `command -v`
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rwxr-xr-x | bin/ebump | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -276,7 +276,7 @@ get_vcs() { echo "svn" return 0 else - if [ -x "$(which git)" ]; then + if command -v git >/dev/null; then if [ -n "$(git rev-parse --git-dir 2>/dev/null)" ]; then echo "git" return 0 |