Skip to content

Commit 036ee86

Browse files
committed
Ensure lib directory exists before curling
cURL errors now because VS Code was moved and the directory does not exist.
1 parent e22a0e5 commit 036ee86

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

ci/build/build-code-server.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ main() {
2020
source ./ci/lib.sh
2121
OS="$(uname | tr '[:upper:]' '[:lower:]')"
2222

23+
mkdir -p ./lib
24+
2325
if ! [ -f ./lib/coder-cloud-agent ]; then
2426
echo "Downloading the cloud agent..."
2527

ci/build/npm-postinstall.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ main() {
5757
esac
5858

5959
OS="$(uname | tr '[:upper:]' '[:lower:]')"
60+
61+
mkdir -p ./lib
62+
6063
if curl -fsSL "https://github.com/cdr/cloud-agent/releases/latest/download/cloud-agent-$OS-$ARCH" -o ./lib/coder-cloud-agent; then
6164
chmod +x ./lib/coder-cloud-agent
6265
else

0 commit comments

Comments
 (0)