aboutsummaryrefslogtreecommitdiff
path: root/pdksh/pdkshrc.d/gpg.pdksh
blob: 62d123ea7d45d08d5b87115e78ee19a911e514a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# Wrapper around gpg(1) to stop ``--batch'' breaking things
gpg() {
    # shellcheck disable=SC2048
    case $* in
        *--ed*|*--gen-k*|*--sign-k*)
            set -- --no-batch "$@"
            ;;
    esac
    command gpg "$@"
}