X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=git-gpg-init%2Fgit-gpg-init.sh;fp=git-gpg-init%2Fgit-gpg-init.sh;h=0000000000000000000000000000000000000000;hb=07cf1d25c22515baa49faad28d31de3cac9bc8cd;hp=3b38745bb01c789085887e7c6f111cc20241d1d6;hpb=2d68b08174ff6d37b5b3f42e51d5e9802d96e2a0;p=webi-installers%2F.git diff --git a/git-gpg-init/git-gpg-init.sh b/git-gpg-init/git-gpg-init.sh deleted file mode 100644 index 3b38745..0000000 --- a/git-gpg-init/git-gpg-init.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash -set -e -set -u - -export PATH="$HOME/.local/opt/gnupg/bin:$PATH" -export PATH="$HOME/.local/opt/gnupg/bin/pinentry-mac.app/Contents/MacOS:$PATH" - -# TODO check for public key without gpg-pubkey? -if ! command -v gpg-pubkey; then - webi gpg-pubkey -else - gpg-pubkey -fi - -MY_KEY_ID="$( - gpg-pubkey-id -)" - -echo -n "Enabling automatic git commit signing... - git config --global user.signingkey ${MY_KEY_ID} - git config --global commit.gpgsign true - git config --global log.showSignature true -" - -git config --global user.signingkey "${MY_KEY_ID}" -git config --global commit.gpgsign true -git config --global log.showSignature true - -echo "" -echo "Successfully updated ~/.gitconfig" -echo "" -echo "How to verify signed commits on GitHub:" -echo "" -echo " 1. Go to 'Add GPG Key': https://github.com/settings/gpg/new" -echo " 2. Copy and paste the key above from the first ---- to the last ----" -echo ""