From 425a043be29185d7c4bab929f6614b7282aa1733 Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Mon, 12 Jul 2021 17:20:29 +0200 Subject: [PATCH] fix: ignore /boot --- .local/bin/dmenuumount | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/dmenuumount b/.local/bin/dmenuumount index 8917cf2..67bcfbe 100755 --- a/.local/bin/dmenuumount +++ b/.local/bin/dmenuumount @@ -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."