easy-use/Linux/gpg-delete.sh
#!/bin/bash
main() {
header_print() {
echo $1
echo "Tip: you can cancel this operation by pressing CTRL + C"
}
EXEC="$(npm bin -g 2> /dev/null)/git-assist"
# delete GPG key
header_print "Starting GPG key deletion utility..."
$EXEC gpg --delete
echo "Done!"
}
export -f main
x-terminal-emulator -e bash -c "main && read -p \"Press Return to exit\""