Skip to content

Commit 69e650d

Browse files
committed
ovoid scanning network mounted filesystems
1 parent c367dd3 commit 69e650d

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

lib/menus/file.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ PDF_READER=evince
66
FILE_EDITOR="$TERM vim"
77

88
list_file(){
9-
find $HOME -type f -not -path '*/.*' -not -path '*/site-packages/*' -not -path '*/env/*' -not -path '*/go/pkg*' | sed 's/^/file:/g'
9+
find $HOME -type f -not -path '*/.*' -not -path '*/site-packages/*' -not -path '*/env/*' -not -path '*/go/pkg*' -mount | sed 's/^/file:/g'
10+
1011
}
1112

1213
run_file(){

lib/menus/otp.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ source "$HOME/.config/scripts/settings.sh"
33

44
list_otp(){
55
for password_store in $PASSWORD_STORES; do
6-
find "$password_store" -name '*.gpg' | sed -e "s|.*$(basename "$password_store")/||g" -e 's|.gpg||g' | sed "s/^/otp:$(basename "$password_store")>/g"
6+
find "$password_store" -name '*.gpg' -mount | sed -e "s|.*$(basename "$password_store")/||g" -e 's|.gpg||g' | sed "s/^/otp:$(basename "$password_store")>/g"
77
done
88
}
99

1010
run_otp(){
1111
echo "$1" | awk -F'>' '{print $1, $2}' | (
1212
read password_store password
13-
PASSWORD_STORE_DIR="$(find "$HOME" -type d -name "$password_store" )" pass otp -c "$password"
13+
PASSWORD_STORE_DIR="$(find "$HOME" -type d -name "$password_store" -mount )" pass otp -c "$password"
1414
)
1515
}

lib/menus/password.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ source "$HOME/.config/scripts/settings.sh"
33

44
list_password(){
55
for password_store in $PASSWORD_STORES; do
6-
find "$password_store" -name '*.gpg' | sed -e "s|.*$(basename "$password_store")/||g" -e 's|.gpg||g' | sed "s/^/password:$(basename "$password_store")>/g"
6+
find "$password_store" -name '*.gpg' -mount | sed -e "s|.*$(basename "$password_store")/||g" -e 's|.gpg||g' | sed "s/^/password:$(basename "$password_store")>/g"
77
done
88
}
99

1010
run_password(){
1111
echo "$1" | awk -F'>' '{print $1, $2}' | (
1212
read password_store password
13-
PASSWORD_STORE_DIR="$(find "$HOME" -type d -name "$password_store" )" pass -c "$password"
13+
PASSWORD_STORE_DIR="$(find "$HOME" -type d -mount -name "$password_store" )" pass -c "$password"
1414
)
1515
}

0 commit comments

Comments
 (0)