aboutsummaryrefslogtreecommitdiff
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
parentequery: Set nocolor for piping to after options are parsed (diff)
downloadgentoolkit-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-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