File tree Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 4949if [[ -n " ${BAZEL_OUTPUTS_DSYM:- } " ]]; then
5050 cd " ${BAZEL_OUT%/* } "
5151
52- if (( $(echo "$(sw_vers - productVersion | cut - d '.' - f 1 - 2 )" | sed 's / \. // g') >= 154 )) ; then
53- # 15.4's `rsync` has a bug that requires the src to have write permissions.
54- # We normally shouldn't do this as it modifies the bazel output base, so we
55- # limit this to only macOS 15.4 or higher .
52+ if [[ " $( sw_vers -productVersion) " == " 15.4.0 " ]] ; then
53+ # 15.4.0 's `rsync` has a bug that requires the src to have write
54+ # permissions. We normally shouldn't do this as it modifies the bazel output
55+ # base, so we limit this to only macOS 15.4.0 .
5656 # shellcheck disable=SC2046
5757 chmod -R +w $( xargs -n1 <<< " $BAZEL_OUTPUTS_DSYM" )
5858 fi
Original file line number Diff line number Diff line change @@ -30,10 +30,10 @@ if [[ "$ACTION" != indexbuild ]]; then
3030 # rpaths to work
3131 ln -sfh " $PWD /$BAZEL_OUTPUTS_PRODUCT_BASENAME " " $TARGET_BUILD_DIR /$PRODUCT_NAME "
3232 else
33- if (( $(echo "$(sw_vers - productVersion | cut - d '.' - f 1 - 2 )" | sed 's / \. // g') >= 154 )) ; then
34- # 15.4's `rsync` has a bug that requires the src to have write
33+ if [[ " $( sw_vers -productVersion) " == " 15.4.0 " ]] ; then
34+ # 15.4.0 's `rsync` has a bug that requires the src to have write
3535 # permissions. We normally shouldn't do this as it modifies the bazel
36- # output base, so we limit this to only macOS 15.4 or higher .
36+ # output base, so we limit this to only macOS 15.4.0 .
3737 chmod -R +w " $BAZEL_OUTPUTS_PRODUCT_BASENAME "
3838 fi
3939
Original file line number Diff line number Diff line change @@ -74,10 +74,10 @@ dest_dir="$(dirname "${dest}")"
7474# Copy over `xcschemes`
7575readonly dest_xcschemes=" $dest /xcshareddata/xcschemes"
7676
77- if (( $(echo "$(sw_vers - productVersion | cut - d '.' - f 1 - 2 )" | sed 's / \. // g') >= 154 )) ; then
78- # 15.4's `rsync` has a bug that requires the src to have write permissions.
77+ if [[ " $( sw_vers -productVersion) " == " 15.4.0 " ]] ; then
78+ # 15.4.0 's `rsync` has a bug that requires the src to have write permissions.
7979 # We normally shouldn't do this as it modifies the bazel output base, so we
80- # limit this to only macOS 15.4 or higher .
80+ # limit this to only macOS 15.4.0 .
8181 chmod -R +w " $src_xcschemes "
8282fi
8383
Original file line number Diff line number Diff line change 136136
137137# Sync over the project, changing the permissions to be writable
138138
139- if (( $(echo "$(sw_vers - productVersion | cut - d '.' - f 1 - 2 )" | sed 's / \. // g') >= 154 )) ; then
140- # 15.4's `rsync` has a bug that requires the src to have write permissions.
139+ if [[ " $( sw_vers -productVersion) " == " 15.4.0 " ]] ; then
140+ # 15.4.0 's `rsync` has a bug that requires the src to have write permissions.
141141 # We normally shouldn't do this as it modifies the bazel output base, so we
142- # limit this to only macOS 15.4 or higher .
142+ # limit this to only macOS 15.4.0 .
143143 chmod -R +w " $src "
144144fi
145145
You can’t perform that action at this time.
0 commit comments