From 7845843544785f8b18f4ac2423ef8d8fe10b095e Mon Sep 17 00:00:00 2001 From: Michal Miskernik Date: Thu, 21 Oct 2021 19:56:07 +0200 Subject: [PATCH] Use find instead of glob for changing file permissions --- dist/steps/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/steps/build.sh b/dist/steps/build.sh index 8f17b2512..4017157cb 100755 --- a/dist/steps/build.sh +++ b/dist/steps/build.sh @@ -158,8 +158,8 @@ chmod -R a+r "$UNITY_PROJECT_PATH" # Add execute permissions to specific files if [[ "$BUILD_TARGET" == "StandaloneOSX" ]]; then - OSX_EXECUTABLE_PATH="$BUILD_PATH_FULL/StandaloneOSX.app/Contents/MacOS/*" - chmod +x "$OSX_EXECUTABLE_PATH" + OSX_EXECUTABLE_PATH="$BUILD_PATH_FULL/$BUILD_NAME.app/Contents/MacOS" + find "$OSX_EXECUTABLE_PATH" -type f -exec chmod +x {} \; fi #