Skip to content

Instantly share code, notes, and snippets.

@borcean
Created September 23, 2022 22:54
Show Gist options
  • Save borcean/48b09d8e93f40d626ced73aa42384fc9 to your computer and use it in GitHub Desktop.
Save borcean/48b09d8e93f40d626ced73aa42384fc9 to your computer and use it in GitHub Desktop.
Install latest dockutil release from GitHub on macOS
#!/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