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
#!/bin/bash | |
# by Andy Maloney | |
# http://asmaloney.com/2013/07/howto/packaging-a-mac-os-x-application-using-a-dmg/ | |
# make sure we are in the correct dir when we double-click a .command file | |
dir=${0%/*} | |
if [ -d "$dir" ]; then | |
cd "$dir" | |
fi |