try unmount dmg if it was mounted previously (e.g. user installed app and mounted dmg)
try unmount dmg if it was mounted previously (e.g. developer mounted dmg, installed app and forgot to unmount it)
Don't use readlink to get dirname of install dir

If you use the path to the install directory (which seems the "normal" way of
doing things) then the readlink will return nothing and dirname will fail...

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Merge pull request #19 from dirkhh/fix-readlink

Don't use readlink to get dirname of install dir
Merge pull request #15 from nordligulv/master

unmount dmg in the start of the build
set internet-enable by default on the dmg
Merge pull request #21 from kodabb/master

Allow to disable internet-enabling
Now 100% more MIT-licensed
This repo is actually 6 years old