Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit a45706a

Browse files
committed
fix Invalid template control keyword
1 parent 5030fcb commit a45706a

File tree

1 file changed

+3
-3
lines changed
  • github-upload-public-key

1 file changed

+3
-3
lines changed

github-upload-public-key/run.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ echo "GitHub token found!"
3636
echo "Fetching Coder public SSH key..."
3737
PUBLIC_KEY_RESPONSE=$(
3838
curl -L -s \
39-
-w "%{http_code}" \
39+
-w "%%{http_code}" \
4040
-H 'accept: application/json' \
4141
-H "cookie: coder_session_token=$CODER_OWNER_SESSION_TOKEN" \
4242
"$CODER_ACCESS_URL/api/v2/users/me/gitsshkey"
@@ -61,7 +61,7 @@ fi
6161
echo "Fetching GitHub public SSH keys..."
6262
GITHUB_KEYS_RESPONSE=$(
6363
curl -L -s \
64-
-w "%{http_code}" \
64+
-w "%%{http_code}" \
6565
-H "Accept: application/vnd.github+json" \
6666
-H "Authorization: Bearer $GITHUB_TOKEN" \
6767
-H "X-GitHub-Api-Version: 2022-11-28" \
@@ -89,7 +89,7 @@ CODER_PUBLIC_KEY_NAME="$CODER_ACCESS_URL Workspaces"
8989
UPLOAD_RESPONSE=$(
9090
curl -L -s \
9191
-X POST \
92-
-w "%{http_code}" \
92+
-w "%%{http_code}" \
9393
-H "Accept: application/vnd.github+json" \
9494
-H "Authorization: Bearer $GITHUB_TOKEN" \
9595
-H "X-GitHub-Api-Version: 2022-11-28" \

0 commit comments

Comments
 (0)