Skip to content

Commit

Permalink
Try checking empty instead of not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
wrandall22 committed Apr 29, 2024
1 parent 19a3439 commit dca3e4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ case $AMPLIFY_COMMAND in
deploy)
echo "deploying"

if [[ ! -z $(aws amplify get-branch --app-id=${AmplifyAppId} --branch-name=$BRANCH_NAME --region=${AWS_REGION} 2> /dev/null) ]]; then
if [[ -z $(aws amplify get-branch --app-id=${AmplifyAppId} --branch-name=$BRANCH_NAME --region=${AWS_REGION} 2> /dev/null) ]]; then
echo "Creating the Amplify branch"
sh -c "aws amplify create-branch --app-id=${AmplifyAppId} --branch-name=$BRANCH_NAME \
${backend_env_arg} ${environment_variables_arg} --region=${AWS_REGION}"
Expand Down

0 comments on commit dca3e4d

Please sign in to comment.