Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

fix: exit from installation script if serverless deployment fails #280

Merged
merged 1 commit into from
Apr 5, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ fi

echo -e "\n\nFHIR Works is deploying. A fresh install will take ~20 mins\n\n"
## Deploy to stated region
serverless deploy --region $region --stage $stage
serverless deploy --region $region --stage $stage || { echo >&2 "Failed to deploy serverless application."; exit 1; }

## Output to console and to file Info_Output.yml. tee not used as it removes the output highlighting.
echo -e "Deployed Successfully.\n"
Expand Down