Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .devcontainer/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ source .venv/bin/activate
# Logout default account
export GITHUB_TOKEN=

# Check `repo` scope exists or not
if gh auth status -a 2>/dev/null | grep "Token scopes: " | grep -q "repo"; then
echo "You now have access to GitHub."
else
gh auth login -p https -w
if [[ $- == *i* ]]; then # Interactive shell only
# Check `repo` scope exists or not
if gh auth status -a 2>/dev/null | grep "Token scopes: " | grep -q "repo"; then
echo "You now have access to GitHub."
else
gh auth login -p https -w
fi
fi

# Check `aaz-dev` is available or not
Expand Down