aboutsummaryrefslogtreecommitdiffstats
path: root/Scripts
diff options
context:
space:
mode:
authorStuart Connolly <stuart02@gmail.com>2014-01-19 02:19:19 +0000
committerStuart Connolly <stuart02@gmail.com>2014-01-19 02:19:19 +0000
commit8b0f587b6aa4e16a2a7ba88cbb6f3a5165c52f45 (patch)
treeb2b13bb8c5fa0f68353208c28e2812fd43f22e95 /Scripts
parentadaa3956873aba928928058cb315fdfff7497d1e (diff)
downloadsequelpro-8b0f587b6aa4e16a2a7ba88cbb6f3a5165c52f45.tar.gz
sequelpro-8b0f587b6aa4e16a2a7ba88cbb6f3a5165c52f45.tar.bz2
sequelpro-8b0f587b6aa4e16a2a7ba88cbb6f3a5165c52f45.zip
Fix the display of the app bundle name.
Diffstat (limited to 'Scripts')
-rwxr-xr-xScripts/trim-application.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/Scripts/trim-application.sh b/Scripts/trim-application.sh
index bbe36551..c5b9d5b8 100755
--- a/Scripts/trim-application.sh
+++ b/Scripts/trim-application.sh
@@ -93,7 +93,9 @@ then
usage
fi
-printf "Trimming application bundle '$(basename \"$APP_PATH\")' at '${APP_PATH}'...\n\n"
+APP_NAME=$(perl -e "print substr('${APP_PATH}', rindex('${APP_PATH}', '/') + 1);")
+
+printf "Trimming application bundle '${APP_NAME}' at '${APP_PATH}'...\n\n"
# Remove unnecessary files
if [ $REMOVE_FILES ]
@@ -140,6 +142,6 @@ then
find "$APP_PATH" -type f | while read FILE; do if [ -s "${FILE}/rsrc" ]; then; printf "\tRemoving reource: ${FILE}/rsrc\n"; cp /dev/null "${FILE}/rsrc"; fi; done;
fi
-printf "\nTrimming application bundle '$(basename \"$APP_PATH\")' complete\n\n"
+printf "\nTrimming application bundle '${APP_NAME}' complete\n\n"
exit 0