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 > [email protected] > -- Brandon Bergren [email protected] _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all To unsubscribe, send any mail to "[email protected]"
