Skip to content

Commit

Permalink
Catch cloud agent download failure
Browse files Browse the repository at this point in the history
- See #2251 and #2229.
  • Loading branch information
code-asher committed Nov 2, 2020
1 parent 676c7bf commit e07a591
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ci/build/npm-postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ main() {
esac

OS="$(uname | tr '[:upper:]' '[:lower:]')"
curl -fsSL "https://storage.googleapis.com/coder-cloud-releases/agent/latest/$OS/cloud-agent" -o ./lib/coder-cloud-agent
chmod +x ./lib/coder-cloud-agent
if curl -fsSL "https://storage.googleapis.com/coder-cloud-releases/agent/latest/$OS/cloud-agent" -o ./lib/coder-cloud-agent ; then
chmod +x ./lib/coder-cloud-agent
else
echo "Failed to download cloud agent; --link will not work"
fi

if ! vscode_yarn; then
echo "You may not have the required dependencies to build the native modules."
Expand Down

0 comments on commit e07a591

Please # to comment.