|
@@ -8,7 +8,7 @@ function argparse {
|
|
|
while (( "$#" )); do
|
|
|
case "$1" in
|
|
|
-h|--help)
|
|
|
- echo Usage: $0 '[-l|--local] [-t|--test] [-s|--skipqualys] [ENVFLAGS] [-d|--debug]'
|
|
|
+ echo Usage: $0 '[-l|--local] [-t|--test] [-s|--skipqualys] [-u|--upgrade] [ENVFLAGS] [-d|--debug]'
|
|
|
echo " where ENVFLAGS is one or more of --envprod, --envcommon, --envtest, or --envall. --envall is the default."
|
|
|
exit 1
|
|
|
;;
|
|
@@ -56,6 +56,10 @@ function argparse {
|
|
|
SKIPQUALYS="--skipqualys"
|
|
|
shift
|
|
|
;;
|
|
|
+ -u|--upgrade)
|
|
|
+ UPGRADE="--upgrade"
|
|
|
+ shift
|
|
|
+ ;;
|
|
|
# -p|--only-path)
|
|
|
# if [ -n "$2" ] && [ ${2:0:1} != "-" ]; then
|
|
|
# ONLY_PATH=$2
|
|
@@ -134,10 +138,10 @@ for e in ${ENVS[*]}; do
|
|
|
|
|
|
EXITCODE=1 # Assume error
|
|
|
if [[ $DEBUG == 1 ]]; then
|
|
|
- echo debug: Would run: terragrunt-apply-all $TESTING $REFRESH $LOCAL $NOTLOCAL $debugstr $SKIPQUALYS
|
|
|
+ echo debug: Would run: terragrunt-apply-all $TESTING $REFRESH $LOCAL $NOTLOCAL $UPGRADE $debugstr $SKIPQUALYS
|
|
|
EXITCODE=$?
|
|
|
else
|
|
|
- terragrunt-apply-all $TESTING $REFRESH $LOCAL $NOTLOCAL $DEBUG $SKIPQUALYS
|
|
|
+ terragrunt-apply-all $TESTING $REFRESH $LOCAL $NOTLOCAL $UPGRADE $DEBUG $SKIPQUALYS
|
|
|
EXITCODE=$?
|
|
|
fi
|
|
|
|