From 7f6ba5aad6ebbe5520a522e94572c94d2b02a786 Mon Sep 17 00:00:00 2001 From: Armin Briegel <1933192+scriptingosx@users.noreply.github.com> Date: Tue, 10 Mar 2020 13:05:20 +0100 Subject: [PATCH] added malwarebytes --- Installomator.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Installomator.sh b/Installomator.sh index b9d5870..4789709 100755 --- a/Installomator.sh +++ b/Installomator.sh @@ -27,8 +27,12 @@ fi # 10-digit developer team ID # obtain this by running # +# Applications (in dmgs or zips) # spctl -a -vv /Applications/BBEdit.app # +# Pkgs +# spctl -a -vv -t install /Applications/BBEdit.app +# # the team ID is the ten-digit ID at the end of the line starting with 'origin=' # # - archiveName: (optional) @@ -49,6 +53,7 @@ fi # TODO: add pkg support # TODO: add zip support +# TODO: handle pkgs in dmg or zip # TODO: check for running processes and either abort or prompt user # TODO: log version of installed software # TODO: notification when done @@ -101,6 +106,11 @@ case $identifier in downloadURL=$(downloadURLFromGit "scriptingosx" "desktoppr") expectedTeamID="JME5BW3F3R" ;; + Malwarebytes) + downloadURL="https://downloads.malwarebytes.com/file/mb3-mac" + archiveName="Malwarebytes.pkg" + expectedTeamID="GVZRY6KDKR" + ;; MicrosoftOffice365) downloadURL="https://go.microsoft.com/fwlink/?linkid=525133" archiveName="MSOffice365.pkg" @@ -189,8 +199,6 @@ cleanupAndExit() { # $1 = exit code # remove the temporary working directory when done echo "Deleting $tmpDir" rm -Rf "$tmpDir" - else - open "$tmpDir" fi if [ -n "$dmgmount" ]; then