aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2017-10-18 03:33:38 +0200
committerGitHub <noreply@github.com>2017-10-18 03:33:38 +0200
commit844c2487a90b1f7fa7981858871f597463d42c45 (patch)
tree3f673fbff8dec16602abbf3452a48cf40395b61b
parent3929c96c77bb578fa1cb3ddff21f4f3deab09e9e (diff)
parentfa80ba79dad7c643d7512cd96b87ffa88c8c7065 (diff)
downloadrofi-pass-844c2487a90b1f7fa7981858871f597463d42c45.tar.gz
Merge pull request #91 from nilcons-contrib/find-symlink
Follow symlinks in the pass store
-rwxr-xr-xrofi-pass8
1 files changed, 4 insertions, 4 deletions
diff --git a/rofi-pass b/rofi-pass
index 277259c..e81a304 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -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