general: Fix TTY error.

This commit is contained in:
Dylan Araps 2019-06-11 16:45:01 +03:00
parent d745cc8c1f
commit 53389a4d13
1 changed files with 1 additions and 1 deletions

2
pash
View File

@ -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() {