grep -q rather.

In any case, instead of checking for directory existence, checking whether 
something is actually mounted there.

On Tue, Mar 2, 2021, at 9:34 PM, Brandon Bergren wrote:
> OK, how about this as an idea then:
> 
> Parse mount output to see if anything is mounted to /boot/efi directly?
> 
> if mount -p | cut -f 2 | grep '^/boot/efi$'; then
> ....
> fi
> 
> -- 
>   Brandon Bergren
>   bdra...@freebsd.org
>

-- 
  Brandon Bergren
  bdra...@freebsd.org
_______________________________________________
dev-commits-src-main@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main
To unsubscribe, send any mail to "dev-commits-src-main-unsubscr...@freebsd.org"

Reply via email to