Making things work...

This commit is contained in:
Gene Liverman 2017-06-03 11:10:10 -07:00
parent 91110e2534
commit 77fce59b08
11 changed files with 137 additions and 22 deletions

View file

@ -1,12 +1,5 @@
#!/bin/bash
if [ -e $1/$2/.r10k-deploy.json ]
then
/opt/puppetlabs/puppet/bin/ruby $1/$2/scripts/code_manager_config_version.rb $1 $2
elif [ -e /opt/puppetlabs/server/pe_version ]
then
/opt/puppetlabs/puppet/bin/ruby $1/$2/scripts/config_version.rb $1 $2
else
/usr/bin/git --version > /dev/null 2>&1 &&
/usr/bin/git --git-dir $1/$2/.git rev-parse HEAD ||
date +%s
fi
/usr/bin/git --version > /dev/null 2>&1 &&
/usr/bin/git --git-dir $1/../.git rev-parse HEAD ||
date +%s