Describe the bug
When trying to install an extension that is already being installed, an error is returned.
➜ gh --version
gh version 2.0.0 (2021-08-24)
https://github.com/cli/cli/releases/tag/v2.0.0
Steps to reproduce the behavior
- Install an extension with
gh extension install
- Try to install it once again
Expected vs actual behavior
The program shouldn't exit with 1 but with 0 since the program is already installed.
Logs
➜ gh extension install mislav/gh-branch
Cloning into '/home/test/.local/share/gh/extensions/gh-branch'...
remote: Enumerating objects: 40, done.
remote: Counting objects: 100% (40/40), done.
remote: Compressing objects: 100% (32/32), done.
remote: Total 40 (delta 13), reused 26 (delta 8), pack-reused 0
Receiving objects: 100% (40/40), 7.99 KiB | 4.00 MiB/s, done.
Resolving deltas: 100% (13/13), done.
➜ gh extension install mislav/gh-branch
there is already an installed extension that provides the "branch" command
➜ echo $?
1
Describe the bug
When trying to install an extension that is already being installed, an error is returned.
Steps to reproduce the behavior
gh extension installExpected vs actual behavior
The program shouldn't exit with 1 but with 0 since the program is already installed.
Logs