Skip to content

Instantly share code, notes, and snippets.

@fada21
Created September 25, 2017 08:40
Show Gist options
  • Save fada21/3190f6237750a6ae0cb5bbef7bd71173 to your computer and use it in GitHub Desktop.
Save fada21/3190f6237750a6ae0cb5bbef7bd71173 to your computer and use it in GitHub Desktop.
DEFAULT_API_VERSION=`cat dockerImageSha`
if [ ! -z $1 ] ; then echo "setting API_VERSION to $1"; else echo "API_VERSION not set, using default: $DEFAULT_API_VERSION"; fi
API_VERSION=${1:-$DEFAULT_API_VERSION}
export API_VERSION
echo "API_VERSION set to $API_VERSION"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment