general: Fix TTY error.

This commit is contained in:
Dylan Araps 2019-06-11 16:45:01 +03:00
parent d745cc8c1f
commit 53389a4d13

2
pash
View File

@ -17,7 +17,7 @@ pw_add() {
[[ $password ]] || [[ $password ]] ||
die "Failed to generate a password." die "Failed to generate a password."
"${gpg[0]}" -co "$1.gpg" <<< "$password" GPG_TTY=$(tty) "${gpg[0]}" -co "$1.gpg" <<< "$password"
} }
pw_del() { pw_del() {