Created
October 5, 2017 02:50
-
-
Save pookjw/eedf6db285094fb16e1676b416cbcd2b to your computer and use it in GitHub Desktop.
Get macOS combo installation package using script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
curl -o /tmp/assets.sucatalog.gz $(sudo /System/Library/PrivateFrameworks/Seeding.framework/Versions/A/Resources/seedutil current | grep CatalogURL | cut -d" " -f2) > /dev/null 2>&1 | |
if [[ -f /tmp/assets.sucatalog.gz ]]; then rm /tmp/assets.sucatalog; fi | |
gunzip /tmp/assets.sucatalog.gz | |
echo $(cat /tmp/assets.sucatalog | grep macOSUpd$(sw_vers -productVersion).pkg | cut -d">" -f2 | cut -d"<" -f1) |
Author
pookjw
commented
Oct 5, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment