diff options
Diffstat (limited to 'sh/prp')
-rwxr-xr-x | sh/prp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -12,10 +12,10 @@ read_pass () { } pass_name="${1:-practice_password2}" +# `| { IFS= read -r p; printf %s "$p"; }` steal from <https://git.zx2c4.com/password-store/tree/contrib/dmenu/passmenu#n34>, GPL-2.0-or-later; I use this because it is much faster than `| head -n1` correct_pass="$(pass "$pass_name" | { IFS= read -r p; printf %s "$p";})" echo "Enter password \"$pass_name\":" read_pass -# `| { IFS= read -r p; printf %s "$p"; }` steal from <https://git.zx2c4.com/password-store/tree/contrib/dmenu/passmenu#n34>, GPL-2.0-or-later; I use this because it is much faster than `| head -n1` while ! [ "$entered_pass" = "$correct_pass" ]; do echo "Wrong password, enter again:" read_pass |