From e46d209f19ad94c89652bec8064a8b6ce880a752 Mon Sep 17 00:00:00 2001 From: Reid Vandewiele Date: Wed, 16 Oct 2019 12:46:30 -0700 Subject: [PATCH] Don't assume git is in /usr/bin; expect it on PATH --- scripts/config_version.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/config_version.sh b/scripts/config_version.sh index d6981a1..bdbc511 100755 --- a/scripts/config_version.sh +++ b/scripts/config_version.sh @@ -24,9 +24,9 @@ elif [ -e /opt/puppetlabs/server/pe_version ]; then # being available. ruby $1/$2/scripts/config_version-rugged.rb $1 $2 -elif [ -x /usr/bin/git ]; then +elif type git >/dev/null; then # The git command is available. - /usr/bin/git --git-dir $1/$2/.git rev-parse HEAD + git --git-dir $1/$2/.git rev-parse HEAD else # Nothing else available; just use the date.