Skip to content

Commit dca3e4d

Browse files
committed
Try checking empty instead of not empty
1 parent 19a3439 commit dca3e4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ case $AMPLIFY_COMMAND in
5454
deploy)
5555
echo "deploying"
5656

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

0 commit comments

Comments
 (0)