diff --git a/pash b/pash index 75276b9..1d8e991 100755 --- a/pash +++ b/pash @@ -17,7 +17,7 @@ pw_add() { [[ $password ]] || die "Failed to generate a password." - "${gpg[0]}" -co "$1.gpg" <<< "$password" + GPG_TTY=$(tty) "${gpg[0]}" -co "$1.gpg" <<< "$password" } pw_del() {