Skip to content

Commit

Permalink
Merge pull request #3 from mr0re1/master
Browse files Browse the repository at this point in the history
Add force flag to emrterminate
  • Loading branch information
cwensel committed Sep 16, 2014
2 parents bceb9ec + f8df7ca commit 4eb7778
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setenv.sh
Expand Up @@ -110,7 +110,9 @@ function emrstat {
}

function emrterminate {
if [ "$1" == -f ]; then f=1; shift; fi
FLOW_ID=`flowid $1`
[ -n "$f" ] && emr -j $FLOW_ID --set-termination-protection false
emr -j $FLOW_ID --terminate
export EMR_FLOW_ID=""
}
Expand Down

0 comments on commit 4eb7778

Please sign in to comment.