fix: ignore /boot

This commit is contained in:
David JULIEN 2021-07-12 17:20:29 +02:00
parent 4d88409e2f
commit 425a043be2
1 changed files with 1 additions and 1 deletions

View File

@ -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."