Skip to content

Commit

Permalink
allow entries to share passwords by referencing a password file with …
Browse files Browse the repository at this point in the history
…"#FILE=SOME_FILE" where SOME_FILE is relative to your PASSWORD_STORE_ROOT.
  • Loading branch information
carnager committed Dec 12, 2016
1 parent ee1e651 commit 752cfb7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rofi-pass
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,11 @@ Run ${default_do} with <span color='$help_color'>Enter</span>. For more help hit
# pass_key_value=$(echo "${fields}" | awk '$1 ~ /:$/{$1=$1;print}')
mapfile -t password_temp < <(PASSWORD_STORE_DIR="${root}" pass "$selected_password")
password=${password_temp[0]}
if [[ ${password} == "#FILE="* ]]; then
pass_file="${password#*=}"
mapfile -t password_temp < <(PASSWORD_STORE_DIR="${root}" pass "${pass_file}")
password=${password_temp[0]}
fi
fields=$(printf '%s\n' "${password_temp[@]:1}" | awk '$1 ~ /:$/{$1=$1;print}')

declare -A stuff
Expand Down

0 comments on commit 752cfb7

Please sign in to comment.