We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ada9415 commit e46d209Copy full SHA for e46d209
scripts/config_version.sh
@@ -24,9 +24,9 @@ elif [ -e /opt/puppetlabs/server/pe_version ]; then
24
# being available.
25
ruby $1/$2/scripts/config_version-rugged.rb $1 $2
26
27
-elif [ -x /usr/bin/git ]; then
+elif type git >/dev/null; then
28
# The git command is available.
29
- /usr/bin/git --git-dir $1/$2/.git rev-parse HEAD
+ git --git-dir $1/$2/.git rev-parse HEAD
30
31
else
32
# Nothing else available; just use the date.
0 commit comments