From 30cf802ff7010eefd8857b8133c65232053fa8cf Mon Sep 17 00:00:00 2001 From: Graham R Pugh Date: Thu, 10 Dec 2020 21:38:53 +0100 Subject: [PATCH] bug fix for the --auto flag --- CHANGELOG.md | 6 ++++++ erase-install.sh | 9 ++++++++- pkg/erase-install/build-info.plist | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 652a35c..f8185a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ No date +## [0.16.1] + +10.12.2020 + +- Bug fix: `--auto` was being incorrectly assigned when using `--os`, `--build` etc. + ## [0.16.0] 10.12.2020 diff --git a/erase-install.sh b/erase-install.sh index 8e858b9..98647ec 100755 --- a/erase-install.sh +++ b/erase-install.sh @@ -506,12 +506,19 @@ run_installinstallmacos() { if [[ $skip_validation != "yes" ]]; then [[ $erase == "yes" || $reinstall == "yes" ]] && installinstallmacos_args+="--validate " fi + fi - elif [[ ! $list == "yes" ]]; then + if [[ $list != "yes" && ! $prechosen_os && ! $prechosen_version && ! $prechosen_build && ! $samebuild ]]; then echo " [run_installinstallmacos] Getting current production version" installinstallmacos_args+="--auto " fi + # TEST + echo + echo " [run_installinstallmacos] This command is now being run:" + echo + echo " installinstallmacos.py $installinstallmacos_args" + if ! python "$workdir/installinstallmacos.py" $installinstallmacos_args ; then echo " [run_installinstallmacos] Error obtaining valid installer. Cannot continue." kill_process jamfHelper diff --git a/pkg/erase-install/build-info.plist b/pkg/erase-install/build-info.plist index f0de129..08a360c 100644 --- a/pkg/erase-install/build-info.plist +++ b/pkg/erase-install/build-info.plist @@ -17,6 +17,6 @@ suppress_bundle_relocation version - 0.16.0 + 0.16.1