commit f6a36635995becb411f30602424d2625dafd2298
parent 523b65e2a1dd7eaa6ff7e9de7667ceabaa04e407
Author: Paul <paul@claws-mail.org>
Date: Tue, 13 Aug 2024 09:34:41 +0100
use command instead of which
The command utility has standardised behavior and availability. Patch by Quentin Rameau
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/get-git-version b/get-git-version
@@ -1,6 +1,6 @@
#!/bin/sh
if test -d .git; then
- git=`which git`
+ git=`command -v git`
if test -x "$git"; then
version=`git describe --abbrev=6 --dirty --always`
echo "echo $version" > ./version