From 8b0f587b6aa4e16a2a7ba88cbb6f3a5165c52f45 Mon Sep 17 00:00:00 2001 From: Stuart Connolly Date: Sun, 19 Jan 2014 02:19:19 +0000 Subject: Fix the display of the app bundle name. --- Scripts/trim-application.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Scripts/trim-application.sh') 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 -- cgit v1.2.3