Created
August 26, 2012 02:36
-
-
Save douglasdollars/3473250 to your computer and use it in GitHub Desktop.
Card ejection
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
card="/Volumes/EOS_DIGITAL" # Matches most Canon cards' default name | |
rm -rf $card"/DCIM" | |
echo ":: photo directory erased" # Ignores other dirs on the card | |
hdiutil eject -force $card | |
echo ":: memory card ejected" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment