Commit 9fea723
committed
fix(github-cli): fix ensure_gh_extension_list_wrapper always creating gh wrapper
The check stripped GH_TOKEN along with the other auth env vars before
running `gh extension list`, but gh CLI requires some token to be
present just to run the extension subcommands, regardless of whether
listing local extensions actually needs auth. With no token and a
fresh empty GH_CONFIG_DIR, the check could never succeed, so the
/usr/local/bin/gh wrapper was installed unconditionally instead of
only when real gh actually fails to see the extensions.1 parent fbd13b8 commit 9fea723
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments