From 86d088713542cfffa0df3e5d64b3dac097b49c0d Mon Sep 17 00:00:00 2001 From: Armin Briegel <1933192+scriptingosx@users.noreply.github.com> Date: Tue, 10 Mar 2020 11:28:59 +0100 Subject: [PATCH] fixed ditto command and BBEdit appName --- Installomator.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Installomator.sh b/Installomator.sh index dd374a7..73d6601 100755 --- a/Installomator.sh +++ b/Installomator.sh @@ -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