Skip to content

Commit f27b393

Browse files
Update .devcontainer/post-attach.sh
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 7fa7de6 commit f27b393

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.devcontainer/post-attach.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if [ ! -f .env ]; then
1919
# install the Copilot version of .env, otherwise install the default version.
2020
ENV_VERSION="env-default"
2121
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
22+
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
2323
ENV_VERSION="env-copilot"
2424
fi
2525
fi

0 commit comments

Comments
 (0)