diff --git a/create_saml_aws.sh b/create_saml_aws.sh index 8564a7e..4218083 100755 --- a/create_saml_aws.sh +++ b/create_saml_aws.sh @@ -4,7 +4,7 @@ # call to create the saml provider in the AWS accounts aws iam create-saml-provider --saml-metadata-document file://idp.xml --name $1 -if [ $? -ne -1 ] +if [ $? -ne 0 ] then echo "creation failed, read the readme and make sure you have an IAM role to perform this action" exit 1