summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-12-03 14:45:14 +0100
committerMichał Górny <mgorny@gentoo.org>2022-12-03 14:45:14 +0100
commit932473493220d48457aeb547018d040138c1e161 (patch)
tree0c8632da5dca8980b2c09dcd2196640a2a166de3 /bin
parent9a402fba0d63240685a2326926060c3c8c523101 (diff)
downloadgentoolkit-932473493220d48457aeb547018d040138c1e161.tar.gz
ebump: Replace which(1) with `command -v`
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ebump2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ebump b/bin/ebump
index 7f6e3ce..06264c4 100755
--- a/bin/ebump
+++ b/bin/ebump
@@ -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