Show label or device if mounted by fstab

This commit is contained in:
Stefen Ramirez 2019-01-21 14:15:57 -06:00 committed by GitHub
parent ab889e8d5e
commit bbf641e8f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@ mountusb() { \
eval declare -A devices=($hmap)
chosen=${devices["$device"]}
sudo -A mount "$chosen" && notify-send -i "$PIX/usb.svg" "$chosen mounted." && exit 0
sudo -A mount "$chosen" && notify-send -i "$PIX/usb.svg" "$device mounted." && exit 0
getmount "/mnt /media /mount /home -maxdepth 5 -type d"
partitiontype="$(lsblk -no "fstype" "$chosen")"
case "$partitiontype" in