commit: 932473493220d48457aeb547018d040138c1e161
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 3 13:45:14 2022 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Dec 3 13:45:14 2022 +0000
URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=93247349
ebump: Replace which(1) with `command -v`
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
bin/ebump | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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