Skip to content

Commit

Permalink
Merge pull request silinternational#126 from thomasbiddle/add-version…
Browse files Browse the repository at this point in the history
…-flag

Add --version flag
  • Loading branch information
fillup authored Dec 18, 2017
2 parents 110d3aa + 96b4311 commit acf81db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Usage
Script will only perform deregistration if deployment succeeds.
--enable-rollback Rollback task definition if new version is not running before TIMEOUT
-v | --verbose Verbose output
--version Display the version

Examples:
Simple (Using env vars for AWS settings):
Expand Down
6 changes: 6 additions & 0 deletions ecs-deploy
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

# Setup default values for variables
VERSION="3.2.0"
CLUSTER=false
SERVICE=false
TASK_DEFINITION=false
Expand Down Expand Up @@ -48,6 +49,7 @@ Optional arguments:
--max-definitions Number of Task Definition Revisions to persist before deregistering oldest revisions.
--enable-rollback Rollback task definition if new version is not running before TIMEOUT
-v | --verbose Verbose output
--version Display the version
Requirements:
aws: AWS Command Line Interface
Expand Down Expand Up @@ -496,6 +498,10 @@ if [ "$BASH_SOURCE" == "$0" ]; then
-v|--verbose)
VERBOSE=true
;;
--version)
echo ${VERSION}
exit 0
;;
*)
usage
exit 2
Expand Down

0 comments on commit acf81db

Please sign in to comment.