aboutsummaryrefslogtreecommitdiffstats
path: root/Scripts
diff options
context:
space:
mode:
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