diff options
-rw-r--r-- | .vscode/settings.json | 3 | ||||
-rwxr-xr-x | gh-cli/install | 43 | ||||
-rw-r--r-- | install.conf.yaml | 1 |
3 files changed, 0 insertions, 47 deletions
diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 93dc280..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "git.detectSubmodules": false -}
\ No newline at end of file diff --git a/gh-cli/install b/gh-cli/install deleted file mode 100755 index 918f587..0000000 --- a/gh-cli/install +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env bash - -app='gh-cli' - -current_version=$(gh --version >&/dev/null | grep -oEm1 'v[0-9\.]+') -current_version=${current_version#v} - -if [ -z "$current_version" ]; then - current_version=0.0.0 - echo "$app: not installed" -else - echo "$app: found $current_version" -fi - -version=$(curl -s "https://api.github.com/repos/cli/cli/releases" | grep -oEm1 'v[0-9\.]+') -version=${version#v} - -if [[ "$version" == "$current_version" ]]; then - echo "$app: up-to-date" -else - echo "$app: new version found $version" - - arch="$(dpkg --print-architecture)" - arch="${arch/hf/v6}" - - tempdir="$(mktemp -d)" - - echo "$app: downloading..." - - curl -sSLo "${tempdir}/gh_${version}_linux_${arch}.deb" "https://github.com/cli/cli/releases/download/v${version}/gh_${version}_linux_${arch}.deb" - - echo "$app: installing..." - - sudo apt-get install "${tempdir}/gh_${version}_linux_${arch}.deb" - - if [ $? -ne 0 ]; then - echo "$app: Failed to install" - else - echo "$app: installed" - fi - - rm -rf $tempdir -fi diff --git a/install.conf.yaml b/install.conf.yaml index bfd14b8..e77d515 100644 --- a/install.conf.yaml +++ b/install.conf.yaml @@ -10,7 +10,6 @@ - [git submodule update --init --recursive, Installing submodules] - [yes | ./fzf/install --bin, Installing fzf] - [./bat/install bat, Installing bat] - # - [./gh-cli/install, Installing gh-cli] - [./cheat.sh/install, Installing cheat.sh] - link: |