diff options
author | Daniel Hahler <git@thequod.de> | 2017-11-18 18:31:53 +0100 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2017-11-18 18:31:54 +0100 |
commit | 20e3fee426d3c5b530e4c7b68a1818f2e89c3b30 (patch) | |
tree | c1d1a0aad804fde39b9063d71e4da8ec25853552 | |
parent | f1708decbd2cd632e8528ae8d1eecf9592d04975 (diff) | |
download | rofi-pass-20e3fee426d3c5b530e4c7b68a1818f2e89c3b30.tar.gz |
Use "pass show" to be more explicit
Allows for better grepping.
-rwxr-xr-x | rofi-pass | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -311,11 +311,11 @@ mainMenu () { 26) ${basecommand} --bmarks; return;; esac - mapfile -t password_temp < <(PASSWORD_STORE_DIR="${root}" pass "$selected_password") + mapfile -t password_temp < <(PASSWORD_STORE_DIR="${root}" pass show "$selected_password") password=${password_temp[0]} if [[ ${password} == "#FILE="* ]]; then pass_file="${password#*=}" - mapfile -t password_temp < <(PASSWORD_STORE_DIR="${root}" pass "${pass_file}") + mapfile -t password_temp < <(PASSWORD_STORE_DIR="${root}" pass show "${pass_file}") password=${password_temp[0]} fi fields=$(printf '%s\n' "${password_temp[@]:1}" | awk '$1 ~ /:$/{$1=$1;print}') @@ -480,7 +480,7 @@ actionMenu () { showEntry () { if [[ -z $pass_content ]]; then - password_temp=$(PASSWORD_STORE_DIR="${root}" pass "$selected_password") + password_temp=$(PASSWORD_STORE_DIR="${root}" pass show "$selected_password") password="${password_temp%%$'\n'*}" pass_key_value=$(printf '%s' "${password_temp}" | tail -n+2 | grep ': ') declare -A stuff |