Created
September 23, 2022 22:54
-
-
Save borcean/48b09d8e93f40d626ced73aa42384fc9 to your computer and use it in GitHub Desktop.
Install latest dockutil release from GitHub on macOS
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
#!/usr/bin/env bash | |
# Installs the latest release of dockutil from Github | |
APP=dockutil | |
# Download latest release PKG from Github | |
curl -s https://api.github.com/repos/kcrawford/dockutil/releases/latest \ | |
| grep "https*.*pkg" | cut -d : -f 2,3 | tr -d \" \ | |
| xargs curl -SL --output /tmp/$APP.pkg | |
# Install PKG to root volume | |
installer -pkg /tmp/$APP.pkg -target / | |
# Cleanup | |
rm /tmp/$APP.pkg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment