5 function __install_git_gpg_init() {
6 MY_CMD="git-config-gpg"
8 rm -f "$HOME/.local/bin/$MY_CMD"
9 webi_download "$WEBI_HOST/packages/$MY_CMD/$MY_CMD.sh" "$HOME/.local/bin/$MY_CMD"
10 chmod a+x "$HOME/.local/bin/$MY_CMD"
13 function __check_gpg_pubkey_exists() {
14 if ! command -v gpg; then
16 export PATH="$HOME/.local/opt/gnupg/bin:$PATH"
17 export PATH="$HOME/.local/opt/gnupg/bin/pinentry-mac.app/Contents/MacOS:$PATH"
21 function __check_gpg_exists() {
22 if ! command -v gpg; then
24 export PATH="$HOME/.local/opt/gnupg/bin:$PATH"
25 export PATH="$HOME/.local/opt/gnupg/bin/pinentry-mac.app/Contents/MacOS:$PATH"
29 __install_git_gpg_init
30 __check_gpg_pubkey_exists
34 "$HOME/.local/bin/$MY_CMD"