Joined October 2018
·
macsinspace
Posted to
Install all the DMG's!!!
over 1 year
ago
This is perfect thank you.
Well, almost..
I added an exclude in the check for the pkg/mpkg for the word uninstall because some DMGs contain an uninstall package.. and I don't want to run that. :P
MPKG_PATH="$(find "${MOUNT_PATH}" -name "*.mpkg" ! -name "*uninstall*" ! -name "*Uninstall*" 2> /dev/null || echo "")"
PKG_PATH="$(find "${MOUNT_PATH}" -name "*.pkg" ! -name "*uninstall*" ! -name "*Uninstall*" 2> /dev/null || echo "")"
APP_PATH="$(find "${MOUNT_PATH}" -name "*.app" ! -name "*uninstall*" ! -name "*Uninstall*" 2> /dev/null || echo "")"
APP_NAME="$(ls "${MOUNT_PATH}" | grep ".app$" || echo "")"
I may have gone a little overboard here and modified it to take a list of links to search...
It'll now search html for dmgs or pkgs and sort for the latest version, including relative paths from github.
Paired with installr, i have my fleet deploying again. :)
https://github.com/MacsInSpace/bootstrapinstallr