aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kasak <dkasak@termina.org.uk>2017-07-14 18:37:52 +0200
committerDenis Kasak <dkasak@termina.org.uk>2017-07-14 22:57:08 +0200
commit29d5608ecf71ce7780be7ace0820538505d86d9e (patch)
tree9e41f35f86f51bc4a768397cddc0ce8477b93ead
parentb49b409187f53fa200922199c90fecd29240ec5e (diff)
downloadrofi-pass-29d5608ecf71ce7780be7ace0820538505d86d9e.tar.gz
Specify directory for find explicitly.
Some find implementations don't have a default directory functionality.
-rwxr-xr-xrofi-pass6
1 files changed, 3 insertions, 3 deletions
diff --git a/rofi-pass b/rofi-pass
index e2ad204..87975b0 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -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