From 4fe3a193615d928391a2b14643d74443de24c443 Mon Sep 17 00:00:00 2001 From: Graham R Pugh Date: Tue, 15 Dec 2020 12:49:01 +0100 Subject: [PATCH] Retrieve erroneously deleted line --- erase-install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erase-install.sh b/erase-install.sh index c9131cd..ea1b13d 100755 --- a/erase-install.sh +++ b/erase-install.sh @@ -278,6 +278,8 @@ check_installer_is_valid() { fi diskutil unmount force "/Volumes/Shared Support" + system_build=$( /usr/bin/sw_vers -buildVersion ) + # we need to break the build into component parts to compare versions # 1. Darwin version is older in the installer than on the system if [[ ${installer_build:0:2} -lt ${system_build:0:2} ]]; then