diff options
author | Rasmus Steinke <rasi@xssn.at> | 2018-02-04 10:39:31 +0100 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2018-02-04 10:39:31 +0100 |
commit | f391ee849ea9be14bc6805928df1b1f421ed1e49 (patch) | |
tree | 3025733a6d3565ba4ce997522f3047b9a8274113 | |
parent | 2df3775e5527536798e76a491d46097bca710687 (diff) | |
download | rofi-pass-f391ee849ea9be14bc6805928df1b1f421ed1e49.tar.gz |
fix missing fields with FILE=
-rw-r--r-- | config.example | 2 | ||||
-rwxr-xr-x | rofi-pass | 4 |
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 @@ -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}') |