From d7f5890fd59071dc3dba091801531d49e17b8896 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 4 Jun 2024 13:14:40 -0700 Subject: [PATCH] Group together with other apps, dont allow rerunning --- install/{gh.sh => app-github-cli.sh} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename install/{gh.sh => app-github-cli.sh} (89%) diff --git a/install/gh.sh b/install/app-github-cli.sh similarity index 89% rename from install/gh.sh rename to install/app-github-cli.sh index 50f2fab..9e9c627 100644 --- a/install/gh.sh +++ b/install/app-github-cli.sh @@ -1,4 +1,4 @@ -if [ -n "$FORCE" ] || ! command -v gh &>/dev/null; then +if ! command -v gh &>/dev/null; then 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 &&