fix: ignore /boot
This commit is contained in:
parent
4d88409e2f
commit
425a043be2
@ -24,7 +24,7 @@ fi
|
||||
}
|
||||
|
||||
usbdrives=$(lsblk -nrpo "name,type,size,mountpoint" | awk \
|
||||
'$2=="part"&&$4!~/\/efi|\/home$|SWAP/&&length($4)>1{printf "%s (%s)\n",$4,$3}')
|
||||
'$2=="part"&&$4!~/\/boot|\/efi|\/home$|SWAP/&&length($4)>1{printf "%s (%s)\n",$4,$3}')
|
||||
|
||||
if [ -z "$usbdrives" ]; then
|
||||
notify-send -u "critical" -t 3000 " USB ERROR" "No drive to unmount."
|
||||
|
Reference in New Issue
Block a user