diff options
-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}') |