git.lirion.de

Of git, get, and gud

summaryrefslogtreecommitdiffstats
path: root/scripts/config_version.sh
blob: b4e6556be1717c6ce1c74dae37d4f4a1d4e518c3 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash
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 --version > /dev/null 2>&1 &&
  /usr/bin/git --git-dir $1/$2/.git rev-parse HEAD ||
  date +%s
fi