We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Up to date Googling suggest the following to install a *.dmg from the command line:
*.dmg
# usage: installdmg https://example.com/path/to/pkg.dmg function installdmg { set -x tempd=$(mktemp -d) curl $1 > $tempd/pkg.dmg listing=$(sudo hdiutil attach $tempd/pkg.dmg | grep Volumes) volume=$(echo "$listing" | cut -f 3) if [ -e "$volume"/*.app ]; then sudo cp -rf "$volume"/*.app /Applications elif [ -e "$volume"/*.pkg ]; then package=$(ls -1 "$volume" | grep .pkg | head -1) sudo installer -pkg "$volume"/"$package" -target / fi sudo hdiutil detach "$(echo "$listing" | cut -f 1)" rm -rf $tempd set +x }
The text was updated successfully, but these errors were encountered:
runs-on
macos-latest
gcarreno
Successfully merging a pull request may close this issue.
Up to date Googling suggest the following to install a
*.dmg
from the command line:The text was updated successfully, but these errors were encountered: