$ stdout=$(diskutil umount /Volumes/SlowSpare)
$ echo $stdout
Volume SlowSpare on disk1s4 unmounted
$ disk=${stdout##* on }
$ disk=${disk%% un*}
$ diskutil mount $disk
Volume SlowSpare on disk1s4 mounted
Created
August 14, 2012 18:44
-
-
Save jeffmccune/3351599 to your computer and use it in GitHub Desktop.
Script your time machine volume
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment