From e936f0f735435e6b235cd467faf16b20f470a270 Mon Sep 17 00:00:00 2001 From: Michael <30936296+mtan93@users.noreply.github.com> Date: Wed, 3 Aug 2022 21:48:30 +0100 Subject: [PATCH] Create Installomator.sh --- Installomator.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Installomator.sh diff --git a/Installomator.sh b/Installomator.sh new file mode 100644 index 0000000..519f1a0 --- /dev/null +++ b/Installomator.sh @@ -0,0 +1,35 @@ +#!/bin/sh +##################################################################################################### +# +# ABOUT THIS PROGRAM +# +# NAME +# Installomator.sh -- Installs or updates Installomator +# +# SYNOPSIS +# sudo Installomator.sh +# +#################################################################################################### +# +# HISTORY +# +# Version: 1.7 +# +# - 1.0 Michael Tanner, 03.08.2022 Initial Build +# +#################################################################################################### +# Script to download and install 1Password 7. +# Only works on Intel systems. +# + +cd /Library/Caches/com.purplecomputing.mdm/ +mkdir -p Apps +cd Apps +rm -rf Installomator* +REPO=Installomator/Installomator +DLURL=$(curl -s https://api.github.com/repos/${REPO}/releases/latest | awk -F\" '/browser_download_url.*.pkg/{print $(NF-1)}') +echo Download is $DLURL +curl -L $DLURL -O +installer -pkg Installomator*.pkg -target / +rm -rf Installomator* +/usr/local/Installomator/Installomator.sh -v