diff options
author | Rasmus Steinke <rasi@xssn.at> | 2017-10-18 03:33:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-18 03:33:38 +0200 |
commit | 844c2487a90b1f7fa7981858871f597463d42c45 (patch) | |
tree | 3f673fbff8dec16602abbf3452a48cf40395b61b | |
parent | 3929c96c77bb578fa1cb3ddff21f4f3deab09e9e (diff) | |
parent | fa80ba79dad7c643d7512cd96b87ffa88c8c7065 (diff) | |
download | rofi-pass-844c2487a90b1f7fa7981858871f597463d42c45.tar.gz |
Merge pull request #91 from nilcons-contrib/find-symlink
Follow symlinks in the pass store
-rwxr-xr-x | rofi-pass | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -529,7 +529,7 @@ manageEntry () { mainMenu elif [[ $1 == "move" ]]; then cd "${root}" || exit - group=$(find . -type d -not -iwholename '*.git*' -printf '%d\t%P\n' | sort -r -nk1 | cut -f2- | _rofi -dmenu -p "Choose Group > ") + group=$(find -L . -type d -not -iwholename '*.git*' -printf '%d\t%P\n' | sort -r -nk1 | cut -f2- | _rofi -dmenu -p "Choose Group > ") if [[ $group == "" ]]; then exit fi @@ -537,7 +537,7 @@ manageEntry () { mainMenu elif [[ $1 == "copy" ]]; then cd "${root}" || exit - group=$(find . -type d -not -iwholename '*.git*' -printf '%d\t%P\n' | sort -r -nk1 | cut -f2- | _rofi -dmenu -p "Choose Group > ") + group=$(find -L . -type d -not -iwholename '*.git*' -printf '%d\t%P\n' | sort -r -nk1 | cut -f2- | _rofi -dmenu -p "Choose Group > ") if [[ $group == "" ]]; then exit else @@ -564,7 +564,7 @@ manageEntry () { } listgpg () { - find . -type f -not -path '*/\.*' | cut -c 3- + find -L . -type f -not -path '*/\.*' | cut -c 3- } insertPass () { @@ -579,7 +579,7 @@ Type name, make sure it is unique" Type name, make sure it is unique" fi cd "${root}" || exit - grouplist="$(find . -type d -not -iwholename '*.git*' -printf '%d\t%P\n' | sort -r -nk1 | cut -f2-)" + grouplist="$(find -L . -type d -not -iwholename '*.git*' -printf '%d\t%P\n' | sort -r -nk1 | cut -f2-)" name="$(listgpg | _rofi -dmenu -format 'f' -filter "${domain_name}" -mesg "${help_content}" -p "> ")" val=$? if [[ $val -eq 1 ]]; then |