We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fa7de6 commit f27b393Copy full SHA for f27b393
1 file changed
.devcontainer/post-attach.sh
@@ -19,7 +19,7 @@ if [ ! -f .env ]; then
19
# install the Copilot version of .env, otherwise install the default version.
20
ENV_VERSION="env-default"
21
if [ -v AI_API_TOKEN ]; then
22
- if curl --fail https://api.githubcopilot.com/models -H "Authorization: Bearer $AI_API_TOKEN" -H "Copilot-Integration-Id: vscode-chat"; then
+ if curl --fail --silent --show-error https://api.githubcopilot.com/models -H "Authorization: Bearer $AI_API_TOKEN" -H "Copilot-Integration-Id: vscode-chat" > /dev/null; then
23
ENV_VERSION="env-copilot"
24
fi
25
0 commit comments