aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2018-02-04 10:39:31 +0100
committerRasmus Steinke <rasi@xssn.at>2018-02-04 10:39:31 +0100
commitf391ee849ea9be14bc6805928df1b1f421ed1e49 (patch)
tree3025733a6d3565ba4ce997522f3047b9a8274113
parent2df3775e5527536798e76a491d46097bca710687 (diff)
downloadrofi-pass-f391ee849ea9be14bc6805928df1b1f421ed1e49.tar.gz
fix missing fields with FILE=
-rw-r--r--config.example2
-rwxr-xr-xrofi-pass4
2 files changed, 3 insertions, 3 deletions
diff --git a/config.example b/config.example
index 0f64ce0..52ba160 100644
--- a/config.example
+++ b/config.example
@@ -53,7 +53,7 @@ clip=primary
# Options for generating new password entries
# default_user is also used for password files that have no user field.
-#default_user=john_doe
+#default_user="${ROFI_PASS_DEFAULT_USER-$(whoami)}"
#default_user2=mary_ann
#password_length=12
diff --git a/rofi-pass b/rofi-pass
index 9a60c61..c0f42bd 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -338,8 +338,8 @@ mainMenu () {
password=${password_temp[0]}
if [[ ${password} == "#FILE="* ]]; then
pass_file="${password#*=}"
- mapfile -t password_temp < <(PASSWORD_STORE_DIR="${root}" pass show "${pass_file}")
- password=${password_temp[0]}
+ mapfile -t password_temp2 < <(PASSWORD_STORE_DIR="${root}" pass show "${pass_file}")
+ password=${password_temp2[0]}
fi
fields=$(printf '%s\n' "${password_temp[@]:1}" | awk '$1 ~ /:$/ || /otpauth:\/\// {$1=$1;print}')