This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# wrapper around "aws cloudformation" CLI to ignore certain pseudo-errors | |
# aws cloudformation deploy exits with 255 for "No changes to deploy" see: https://github.com/awslabs/serverless-application-model/issues/71 | |
# this script exits with 0 for that case | |
STDERR=$(( aws cloudformation "$@" ) 2>&1) | |
ERROR_CODE=$? | |
echo ${STDERR} 1>&2 |