From 848415eaba8b1fad0b6e4c1f3a4df17a8e56fd27 Mon Sep 17 00:00:00 2001 From: Isaac Lo Date: Tue, 23 Apr 2019 14:48:26 -0500 Subject: (fix #166): password hidden * used -password option to hide password when entering it in rofi-pass --- rofi-pass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rofi-pass b/rofi-pass index 48928db..e7e25ef 100755 --- a/rofi-pass +++ b/rofi-pass @@ -385,7 +385,7 @@ mainMenu () { fields=$(printf '%s\n' "${password_temp[@]:1}" | awk '$1 ~ /:$/ || /otpauth:\/\// {$1=$1;print}') declare -A stuff stuff["pass"]=${password} - + if [[ -n $fields ]]; then while read -r LINE; do unset _id _val @@ -713,7 +713,7 @@ insertPass () { exit fi - pw=$(printf '%s' "Generate" | _rofi -dmenu -p "Password > " -mesg "Type Password or hit Enter to generate one") + pw=$(printf '%s' "Generate" | _rofi -dmenu -password -p "Password > " -mesg "Type Password or hit Enter to generate one") if [[ $pw == "Generate" ]]; then pw=$(_pwgen "${password_length}") @@ -754,7 +754,7 @@ insertPass () { } help_msg () { - cat <<'EOF' + cat <<'EOF' Usage: rofi-pass [command] -- cgit