From 932473493220d48457aeb547018d040138c1e161 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sat, 3 Dec 2022 14:45:14 +0100 Subject: ebump: Replace which(1) with `command -v` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- bin/ebump | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') 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 -- cgit v1.2.3