diff options
author | Denis Kasak <dkasak@termina.org.uk> | 2017-07-14 18:37:52 +0200 |
---|---|---|
committer | Denis Kasak <dkasak@termina.org.uk> | 2017-07-14 22:57:08 +0200 |
commit | 29d5608ecf71ce7780be7ace0820538505d86d9e (patch) | |
tree | 9e41f35f86f51bc4a768397cddc0ce8477b93ead | |
parent | b49b409187f53fa200922199c90fecd29240ec5e (diff) | |
download | rofi-pass-29d5608ecf71ce7780be7ace0820538505d86d9e.tar.gz |
Specify directory for find explicitly.
Some find implementations don't have a default directory functionality.
-rwxr-xr-x | rofi-pass | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -507,7 +507,7 @@ manageEntry () { elif [[ $1 == "move" ]]; then cd "${root}" || exit selected_password2=$(basename "$selected_password" .gpg) - group=$(find -type d -not -iwholename '*.git*' -printf '%d\t%P\n' | sort -r -nk1 | cut -f2- | _rofi -dmenu -p "Choose Group > ") + group=$(find . -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 @@ -517,7 +517,7 @@ manageEntry () { cd "${root}" || exit selected_password2=$(basename "$selected_password" .gpg) original_group=$(dirname "${selected_password}") - group=$(find -type d -not -iwholename '*.git*' -printf '%d\t%P\n' | sort -r -nk1 | cut -f2- | _rofi -dmenu -p "Choose Group > ") + group=$(find . -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 @@ -558,7 +558,7 @@ insertPass () { if [[ $val -eq 1 ]]; then exit fi - group=$(echo -e "No Group\n---\n$(find -type d -not -iwholename '*.git*' -printf '%d\t%P\n' | sort -r -nk1 | cut -f2-)" | rofi -dmenu -p "Choose Group > ") + group=$(echo -e "No Group\n---\n$(find . -type d -not -iwholename '*.git*' -printf '%d\t%P\n' | sort -r -nk1 | cut -f2-)" | rofi -dmenu -p "Choose Group > ") val=$? if [[ $val -eq 1 ]]; then exit |