aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 97e6f2e..752ee2c 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}')