aboutsummaryrefslogblamecommitdiff
path: root/sh/shrc.d/gpg.sh
blob: 62d123ea7d45d08d5b87115e78ee19a911e514a2 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                           

                               
                                    
                                  

              
                    
 
# 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 "$@"
}