From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BAE05158021 for ; Sat, 3 Dec 2022 13:54:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C58262BC00C; Sat, 3 Dec 2022 13:54:24 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AD9F32BC00C for ; Sat, 3 Dec 2022 13:54:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AF844340DB8 for ; Sat, 3 Dec 2022 13:54:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 454A3692 for ; Sat, 3 Dec 2022 13:54:22 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1670075114.932473493220d48457aeb547018d040138c1e161.mgorny@gentoo> Subject: [gentoo-commits] proj/gentoolkit:master commit in: bin/ X-VCS-Repository: proj/gentoolkit X-VCS-Files: bin/ebump X-VCS-Directories: bin/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 932473493220d48457aeb547018d040138c1e161 X-VCS-Branch: master Date: Sat, 3 Dec 2022 13:54:22 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2cbf7ba1-b1c8-453b-b2a1-a1069a47d0ab X-Archives-Hash: 65fc26ca68e2c86b736cbd4594043e34 commit: 932473493220d48457aeb547018d040138c1e161 Author: Michał Górny gentoo org> AuthorDate: Sat Dec 3 13:45:14 2022 +0000 Commit: Michał Górny gentoo 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 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