-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
Labels
bugSomething isn't workingSomething isn't workingpriority-1Affects a large population and inhibits workAffects a large population and inhibits work
Description
Describe the bug
When installing gh on ubuntu environment following installation guide, gh binary is installed in the wrong path (/usr/bin/bin/gh)
gh version: 2.20.1
root@1168702c8625:~# /usr/bin/bin/gh version
gh version 2.20.1 (2022-11-15)
https://github.com/cli/cli/releases/tag/v2.20.1
Steps to reproduce the behavior
- Install gh following installation guide
type -p curl >/dev/null || sudo apt install curl -y
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
&& sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& sudo apt update \
&& sudo apt install gh -y
Expected vs actual behavior
gh command should be working. but command not found
root@1168702c8625:~# gh
bash: gh: command not found
Logs
I found gh binary installed in /usr/bin/bin/gh. It should be installed in /usr/bin/gh (maybe 😄)
root@1168702c8625:~# dpkg -L gh
/usr
/usr/bin
/usr/bin/bin
/usr/bin/bin/gh <-
/usr/share
/usr/share/man
/usr/share/man/man1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpriority-1Affects a large population and inhibits workAffects a large population and inhibits work