set -e # exit immediately if a simple command exits with a non-zero status
set -u # report the usage of uninitialized variables

 # Available variables
# $BOSH_COMPILE_TARGET - where this package & spec'd source files are available
# $BOSH_INSTALL_TARGET - where you copy/install files to be included in package

mkdir -p $BOSH_INSTALL_TARGET/bin
tar xfz envconsul/envconsul_0.3.0_linux_amd64.tar.gz
cp -a envconsul_0.3.0_linux_amd64/envconsul $BOSH_INSTALL_TARGET/bin/
chmod +x $BOSH_INSTALL_TARGET/bin/envconsul
