feat: Check driver platform

This commit is contained in:
Kroese 2025-03-20 17:19:11 +01:00 committed by GitHub
parent e2be4f6d0c
commit cb91e8c1cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -726,7 +726,11 @@ addDriver() {
if [ -z "$folder" ]; then if [ -z "$folder" ]; then
desc=$(printVersion "$id" "$id") desc=$(printVersion "$id" "$id")
warn "no \"$driver\" driver available for \"$desc\" !" && return 0 if [[ "${id,,}" != *"x86"* ]]; then
warn "no \"$driver\" driver available for \"$desc\" !" && return 0
else
warn "no \"$driver\" driver available for the 32-bit version of \"$desc\" !" && return 0
fi
fi fi
[ ! -d "$path/$driver/$folder" ] && return 0 [ ! -d "$path/$driver/$folder" ] && return 0