summaryrefslogtreecommitdiff
path: root/scripts/.local/bin/dmnt
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/.local/bin/dmnt')
-rwxr-xr-xscripts/.local/bin/dmnt2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/.local/bin/dmnt b/scripts/.local/bin/dmnt
index 2a560d9..2df5271 100755
--- a/scripts/.local/bin/dmnt
+++ b/scripts/.local/bin/dmnt
@@ -17,7 +17,7 @@ getmount() { \
mountusb() { \
sudo -A mount "$1" 2>/dev/null && notify-send "USB mounting" "$1 mounted." && exit 0
alreadymounted=$(lsblk -nrpo "name,type,mountpoint" | awk '$3!~/\/boot|\/home$|SWAP/&&length($3)>1{printf "-not ( -path *%s -prune ) ",$3}')
- getmount "/mnt -maxdepth 1 -type d $alreadymounted"
+ getmount "/mnt /media -maxdepth 1 -type d $alreadymounted"
partitiontype="$(lsblk -no "fstype" "$1")"
case "$partitiontype" in
"vfat") sudo -A mount -t vfat "$1" "$mp" -o rw,umask=0000;;