mirror of
https://github.com/mtan93/Installomator.git
synced 2026-04-01 06:13:13 +01:00
Dont download pkg if we are set to silent_fail and there is blocking process
Fixes issue where installomator will repeatedly download the pkg each run when set to silent_fail and a blockingprocess is present.
This commit is contained in:
@@ -3228,6 +3228,15 @@ fi
|
|||||||
if [ -f "$archiveName" ] && [ "$DEBUG" -ne 0 ]; then
|
if [ -f "$archiveName" ] && [ "$DEBUG" -ne 0 ]; then
|
||||||
printlog "$archiveName exists and DEBUG enabled, skipping download"
|
printlog "$archiveName exists and DEBUG enabled, skipping download"
|
||||||
else
|
else
|
||||||
|
# check for blocking process and exit if we are instructed to silent_fail (prevents excess download)
|
||||||
|
if [[ $BLOCKING_PROCESS_ACTION == "silent_fail" ]]; then
|
||||||
|
if [[ ${#blockingProcesses} -gt 0 ]]; then
|
||||||
|
if [[ ${blockingProcesses[1]} != "NONE" ]]; then
|
||||||
|
checkRunningProcesses
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# download the dmg
|
# download the dmg
|
||||||
printlog "Downloading $downloadURL to $archiveName"
|
printlog "Downloading $downloadURL to $archiveName"
|
||||||
if [[ $currentUser != "loginwindow" && $NOTIFY == "all" ]]; then
|
if [[ $currentUser != "loginwindow" && $NOTIFY == "all" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user