refactor!: rename git-gpg-init => git-config-gpg
[webi-installers/.git] / git-gpg-init / install.sh
diff --git a/git-gpg-init/install.sh b/git-gpg-init/install.sh
deleted file mode 100644 (file)
index 691954d..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/bash
-set -e
-set -u
-
-function __install_git_gpg_init() {
-    MY_CMD="git-gpg-init"
-
-    rm -f "$HOME/.local/bin/$MY_CMD"
-    webi_download "$WEBI_HOST/packages/$MY_CMD/$MY_CMD.sh" "$HOME/.local/bin/$MY_CMD"
-    chmod a+x "$HOME/.local/bin/$MY_CMD"
-}
-
-function __check_gpg_pubkey_exists() {
-    if ! command -v gpg; then
-        webi gpg-pubkey
-        export PATH="$HOME/.local/opt/gnupg/bin:$PATH"
-        export PATH="$HOME/.local/opt/gnupg/bin/pinentry-mac.app/Contents/MacOS:$PATH"
-    fi
-}
-
-function __check_gpg_exists() {
-    if ! command -v gpg; then
-        webi gpg
-        export PATH="$HOME/.local/opt/gnupg/bin:$PATH"
-        export PATH="$HOME/.local/opt/gnupg/bin/pinentry-mac.app/Contents/MacOS:$PATH"
-    fi
-}
-
-__install_git_gpg_init
-__check_gpg_pubkey_exists
-__check_gpg_exists
-
-# run the command
-"$HOME/.local/bin/$MY_CMD"