The script for "openfoam10-macos" has two sections trying to set the mount directory. The first one uses a variable that is undefined in the script, and so always generates an error. Commenting out those two lines allows the script to run normally.
# [ -d "$MOUNT_DIR" ] || usage "No directory exists1: $MOUNT_DIR"
# MOUNT_DIR=$(cd "$MOUNT_DIR" && pwd -P)
[ -d "$mount_dir" ] || usage "No directory exists2: $mount_dir"
mount_dir=$(cd "$mount_dir" && pwd -P)