From 53389a4d136c0b2b23eec1f75233675986746094 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 11 Jun 2019 16:45:01 +0300 Subject: [PATCH] general: Fix TTY error. --- pash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {