Better test that actually checks for mount

@drwetter can you test this? I don't have FreeBSD myself
This commit is contained in:
Frank Breedijk 2016-07-04 17:38:09 +02:00
parent b24fdc5e21
commit 223e410312

View File

@ -6644,7 +6644,7 @@ openssl_age() {
}
bsd-bash() {
if [[ $(uname) -eq "FreeBSD" ]] && [[ $(count_lines "$(ls /dev/fd)") -le 3 ]]; then
if [[ $(uname) -eq "FreeBSD" ]] && [[ $(count_lines "$(mount | grep '/dev/fd' | grep -q fdescfs)") -le 3 ]]; then
echo "You need to mount fdescfs on FreeBSD: mount -t fdescfs fdesc /dev/fd"
exit 1
fi