change how mounts are listed

This commit is contained in:
Q
2024-09-08 20:05:44 +03:00
parent 523a61ee80
commit 71e155fcde
2 changed files with 23 additions and 10 deletions

View File

@@ -8,14 +8,18 @@ _helpexit() {
-u will unmount all FUSE.rclone paths if no path given!
" "$( basename $0 )"
echo Current mounts:
cat /proc/mounts | grep fuse.rclone | awk '{ print $1 "\t" $2 }'
_current_mounts
exit 1
}
_current_mounts() {
echo Current mounts:
cat /proc/mounts | grep fuse.rclone | awk '{ print $1 " " $2 }' | sed "s,$HOME,~," | xargs printf "%15s %s\n"
}
_menu() {
echo Current mounts:
cat /proc/mounts | grep fuse.rclone | awk '{ print $1 "\t" $2 }'
_current_mounts
_askpass
choice=$( rclone --ask-password=false listremotes | \
sort | \