Use find instead of glob for changing file permissions (#293)

This commit is contained in:
Michal Miškerník 2021-10-22 01:03:21 +02:00 committed by GitHub
parent 8a836b81c5
commit e97ec82110
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
dist/steps/build.sh vendored
View File

@ -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
#