diff --git a/macOSUpgrade.sh b/macOSUpgrade.sh index 54077d5..3bb6e24 100755 --- a/macOSUpgrade.sh +++ b/macOSUpgrade.sh @@ -412,14 +412,14 @@ fi ##Check if eraseInstall is Enabled if [[ $eraseInstall == 1 ]]; then eraseopt='--eraseinstall' - /bin/echo " Script is configured for Erase and Install of macOS." + /bin/echo "Script is configured for Erase and Install of macOS." fi osinstallLogfile="/var/log/startosinstall.log" if [ "$versionMajor" -ge 14 ]; then - eval "\"$OSInstaller/Contents/Resources/startosinstall\"" "$eraseopt" --agreetolicense --nointeraction --pidtosignal "$jamfHelperPID" >> "$osinstallLogfile" & + eval "\"$OSInstaller/Contents/Resources/startosinstall\"" "$eraseopt" --agreetolicense --nointeraction --pidtosignal "$jamfHelperPID" >> "$osinstallLogfile" 2>&1 & else - eval "\"$OSInstaller/Contents/Resources/startosinstall\"" "$eraseopt" --applicationpath "\"$OSInstaller\"" --agreetolicense --nointeraction --pidtosignal "$jamfHelperPID" >> "$osinstallLogfile" & + eval "\"$OSInstaller/Contents/Resources/startosinstall\"" "$eraseopt" --applicationpath "\"$OSInstaller\"" --agreetolicense --nointeraction --pidtosignal "$jamfHelperPID" >> "$osinstallLogfile" 2>&1 & fi /bin/sleep 3