We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e058975 commit e40d423Copy full SHA for e40d423
.devcontainer/init.sh
@@ -4,11 +4,13 @@ source .venv/bin/activate
4
# Logout default account
5
export GITHUB_TOKEN=
6
7
-# Check `repo` scope exists or not
8
-if gh auth status -a 2>/dev/null | grep "Token scopes: " | grep -q "repo"; then
9
- echo "You now have access to GitHub."
10
-else
11
- 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
12
+ gh auth login -p https -w
13
+ fi
14
fi
15
16
# Check `aaz-dev` is available or not
0 commit comments