Skip to content

Commit

Permalink
Integrate parts of #192, fixes adding passwords
Browse files Browse the repository at this point in the history
  • Loading branch information
cincodenada committed Jul 2, 2020
1 parent 594adc9 commit c63c0dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ in a convenient way using [rofi](https://github.com/DaveDavenport/rofi).
* xdotool
* gawk
* bash 4.x
* find
* pwgen
* [pass-otp](https://github.com/tadfisher/pass-otp) (optional: for OTPs)

Expand Down
8 changes: 2 additions & 6 deletions rofi-pass
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ has_qrencode() {
# get all password files and ouput as newline-delimited text
list_passwords() {
cd "${root}" || exit
find -L * -name "*.gpg" |
listgpg |
while IFS= read pfile; do
echo ${pfile%.gpg}
done | sort -n
Expand Down Expand Up @@ -673,8 +673,7 @@ manageEntry () {
}

listgpg () {
pw_list=(**/*.gpg)
printf '%s\n' "${pw_list[@]}" | sort -n
find -L * -name "*.gpg" | sort -n
}

insertPass () {
Expand Down Expand Up @@ -793,9 +792,6 @@ get_config_file () {
}

main () {
# enable extended globbing
shopt -s nullglob globstar

# load config file
config_file="$(get_config_file)"
[[ ! -z "$config_file" ]] && source "$config_file"
Expand Down

0 comments on commit c63c0dd

Please sign in to comment.