Skip to content

Commit f23431c

Browse files
fix: resolve unbound variable issue for GITHUB_TOKEN in install script
1 parent 4d1446d commit f23431c

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/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ install_copilot_cli() {
5151
check_github_authentication() {
5252
echo "Checking GitHub authentication..."
5353

54-
if [ -n "$GITHUB_TOKEN" ]; then
54+
if [ -n "${GITHUB_TOKEN:-}" ]; then
5555
echo "✓ GitHub token provided via module configuration"
5656
return 0
5757
fi

0 commit comments

Comments
 (0)