gentoo-ebuilds/app-backup/bacula/files/bacula-drop-which.patch
Thomas Beierlein a647e010c1
app-backup/bacula: Drop reliance on 'which' command
Closes: https://bugs.gentoo.org/940692
Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>
2024-10-20 13:14:30 +02:00

12 lines
298 B
Diff

diff --git a/scripts/getgitcommit b/scripts/getgitcommit
index 6897091..d82a7e5 100755
--- a/scripts/getgitcommit
+++ b/scripts/getgitcommit
@@ -1,6 +1,6 @@
#!/bin/sh
-GIT=$(which git)
+GIT=$(command -v git)
if [ "x$GIT" != "x" ]
then
COMMIT=$(git log --pretty=format:%h -n 1 2>/dev/null)