Checking for git first
This commit is contained in:
parent
869a5c3aa9
commit
f765903e25
@ -3,5 +3,7 @@ if [ -e /opt/puppetlabs/server/pe_version ]
|
||||
then
|
||||
/opt/puppetlabs/puppet/bin/ruby $1/$2/scripts/config_version.rb $1 $2
|
||||
else
|
||||
/usr/bin/git --git-dir $1/$2/.git rev-parse HEAD
|
||||
/usr/bin/git --version > /dev/null 2>&1 &&
|
||||
/usr/bin/git --git-dir $1/$2/.git rev-parse HEAD ||
|
||||
date +%s
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user