Skip to content

Commit 4d1446d

Browse files
fix: fix unbound variable issue when github_token is not set
1 parent d161d96 commit 4d1446d

File tree

1 file changed

+1
-1
lines changed
  • registry/coder-labs/modules/copilot-cli/scripts

1 file changed

+1
-1
lines changed

registry/coder-labs/modules/copilot-cli/scripts/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ check_existing_session() {
8484
setup_github_authentication() {
8585
echo "Setting up GitHub authentication..."
8686

87-
if [ -n "$GITHUB_TOKEN" ]; then
87+
if [ -n "${GITHUB_TOKEN:-}" ]; then
8888
export GH_TOKEN="$GITHUB_TOKEN"
8989
echo "✓ Using GitHub token from module configuration"
9090
return 0

0 commit comments

Comments
 (0)