aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2017-11-18 18:31:53 +0100
committerDaniel Hahler <git@thequod.de>2017-11-18 18:31:54 +0100
commit20e3fee426d3c5b530e4c7b68a1818f2e89c3b30 (patch)
treec1d1a0aad804fde39b9063d71e4da8ec25853552
parentf1708decbd2cd632e8528ae8d1eecf9592d04975 (diff)
downloadrofi-pass-20e3fee426d3c5b530e4c7b68a1818f2e89c3b30.tar.gz
Use "pass show" to be more explicit
Allows for better grepping.
-rwxr-xr-xrofi-pass6
1 files changed, 3 insertions, 3 deletions
diff --git a/rofi-pass b/rofi-pass
index 0f3edc2..1083648 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -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