1 2 3 4 5 6
# If TTY/GPG_TTY are set, update them if [[ -n $TTY || -n $GPG_TTY ]]; then TTY=$(tty) GPG_TTY=$TTY fi