From ce1bd05308e01cb20721a471e691a52274d017f0 Mon Sep 17 00:00:00 2001 From: Graham Pugh Date: Thu, 14 Nov 2024 09:29:19 +0100 Subject: [PATCH] fix board ID recognition --- erase-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erase-install.sh b/erase-install.sh index 26b31ad..9f18a10 100755 --- a/erase-install.sh +++ b/erase-install.sh @@ -437,7 +437,7 @@ check_installer_is_valid() { # 2. Grab compatible device/board IDs from com_apple_MobileAsset_MacSoftwareUpdate compatible_device_ids=$(grep -A2 "SupportedDeviceModels" "$build_xml" | grep string | awk -F '|' '{ print $2 }') # 3. Check that 1 is in 2. - if [[ ($device_id && "$compatible_device_ids" == *"$device_id"*) || ($board_id && "$compatible_device_ids" == *"$board_id") ]]; then + if [[ ($device_id && "$compatible_device_ids" == *"$device_id"*) || ($board_id && "$compatible_device_ids" == *"$board_id"*) ]]; then writelog "[check_installer_is_valid] Installer is compatible with system" else writelog "[check_installer_is_valid] ERROR: Installer is incompatible with system"