control-repo/scripts/config_version.sh

15 lines
299 B
Bash
Raw Normal View History

#!/bin/sh
if [ $# -ne 2 -o ! -d "$1" -o ! -d "$1/$2" ]; then
echo "usage: $0 <environmentpath> <environment>" >&2
exit 1
fi
ruby=ruby
if [ -x /opt/puppetlabs/puppet/bin/ruby ]; then
ruby=/opt/puppetlabs/puppet/bin/ruby
fi
"${ruby}" "$1/$2/scripts/code_manager_config_version.rb" "$1" "$2"