Skip to content

Fix gh-clone-all auth error #24

@dideler

Description

@dideler

When the auth step fails, we don't handle it properly. Instead the scripts runs in a degraded state.

github.com
  X github.com: the token in GITHUB_TOKEN is missing required scope 'read:org'

fish: Unknown command: \{\n\ \ \ \ echo\ Must\ authenticate\ via\ GitHub\ CLI:\ gh\ auth\ login\ 1\>\&2\n\ \ \ \ exit\ 1\n\ \ \}
~/.config/fish/functions/gh-clone-all.fish (line 2): '{ ... }' is not supported for grouping commands. Please use 'begin; ...; end'
  gh auth status >/dev/null || {
    echo "Must authenticate via GitHub CLI: gh auth login" 1>&2
    exit 1
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions