Skip to content

Instantly share code, notes, and snippets.

View ryanlovett's full-sized avatar

Ryan Lovett ryanlovett

  • University of California, Berkeley
  • United States
View GitHub Profile
@ryanlovett
ryanlovett / dmattach
Created December 8, 2015 00:47
Simple utility to mount DMGs and return the mount point.
#!/bin/bash
# Mount a DMG and output the mount point. Do not make the volume visible to
# the Finder. This is useful for remote software installation.
# Debugging
# set -x
DMG="$@"
TMPFILE=`mktemp /tmp/dmg.XXX` &&