fixed ditto command and BBEdit appName

This commit is contained in:
Armin Briegel
2020-03-10 11:28:59 +01:00
parent 7a59d2fac1
commit 86d0887135

View File

@@ -85,6 +85,7 @@ case $identifier in
;;
BBEdit)
downloadURL=$(curl -s https://versioncheck.barebones.com/BBEdit.xml | grep dmg | sort | tail -n1 | cut -d">" -f2 | cut -d"<" -f1)
appName="BBEdit.app"
expectedTeamID="W52GZAXT98"
;;
Firefox)
@@ -192,7 +193,7 @@ installFromDMG() {
# copy app to /Applications
echo "Copy $dmgmount/$appName to $targetDir"
if ! ditto "$dmgmount/$appName" "$targetDir"; then
if ! ditto "$dmgmount/$appName" "$targetDir/$appName"; then
echo "Error while copying!"
cleanupAndExit 7
fi