Skip to content

Commit

Permalink
chore: ignore error of gh auth token
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Jan 30, 2024
1 parent 8e10466 commit 4b463dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ container_name=${1:-aqua-registry}
token="${AQUA_GITHUB_TOKEN:-${GITHUB_TOKEN:-}}"
if [ -z "$token" ]; then
echo "[INFO] Get a GitHub Access token by gh auth token" >&2
token=$(aqua exec -- gh auth token)
# Ignore error
token=$(aqua exec -- gh auth token) || :
fi
envs=""
if [ -n "$token" ]; then
Expand Down

0 comments on commit 4b463dc

Please sign in to comment.