From e97ec821108b14a6a898902c033c45184c00da77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Mi=C5=A1kern=C3=ADk?= Date: Fri, 22 Oct 2021 01:03:21 +0200 Subject: [PATCH] Use find instead of glob for changing file permissions (#293) --- 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 8f17b251..4017157c 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 #