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 49
49
if [[ -n " ${BAZEL_OUTPUTS_DSYM:- } " ]]; then
50
50
cd " ${BAZEL_OUT%/* } "
51
51
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 .
56
56
# shellcheck disable=SC2046
57
57
chmod -R +w $( xargs -n1 <<< " $BAZEL_OUTPUTS_DSYM" )
58
58
fi
Original file line number Diff line number Diff line change @@ -30,10 +30,10 @@ if [[ "$ACTION" != indexbuild ]]; then
30
30
# rpaths to work
31
31
ln -sfh " $PWD /$BAZEL_OUTPUTS_PRODUCT_BASENAME " " $TARGET_BUILD_DIR /$PRODUCT_NAME "
32
32
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
35
35
# 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 .
37
37
chmod -R +w " $BAZEL_OUTPUTS_PRODUCT_BASENAME "
38
38
fi
39
39
Original file line number Diff line number Diff line change @@ -74,10 +74,10 @@ dest_dir="$(dirname "${dest}")"
74
74
# Copy over `xcschemes`
75
75
readonly dest_xcschemes=" $dest /xcshareddata/xcschemes"
76
76
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.
79
79
# 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 .
81
81
chmod -R +w " $src_xcschemes "
82
82
fi
83
83
Original file line number Diff line number Diff line change 136
136
137
137
# Sync over the project, changing the permissions to be writable
138
138
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.
141
141
# 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 .
143
143
chmod -R +w " $src "
144
144
fi
145
145
You can’t perform that action at this time.
0 commit comments