2024-06-03 18:25:43 -05:00
|
|
|
if [ -n "$FORCE" ] || ! command -v gh &>/dev/null; then
|
2024-05-26 18:09:34 -05:00
|
|
|
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
|
|
|
|
fi
|