Skip to content

Commit 2acba7c

Browse files
committed
fix: expand bash array correctly
1 parent 72472d5 commit 2acba7c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dist/platforms/mac/steps/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ echo "# Build target/prof #"
131131
echo "###########################"
132132
echo ""
133133

134-
echo "$BUILD_TARGET_OR_PROFILE"
134+
echo "${BUILD_TARGET_OR_PROFILE[1]} \"${BUILD_TARGET_OR_PROFILE[2]}\""
135135

136136
echo ""
137137
echo "###########################"
@@ -180,7 +180,7 @@ echo ""
180180
-password "$UNITY_PASSWORD" \
181181
-customBuildName "$BUILD_NAME" \
182182
-projectPath "$UNITY_PROJECT_PATH" \
183-
"$BUILD_TARGET_OR_PROFILE[@]" \
183+
"${BUILD_TARGET_OR_PROFILE[@]}" \
184184
-customBuildTarget "$BUILD_TARGET" \
185185
-customBuildPath "$CUSTOM_BUILD_PATH" \
186186
-executeMethod "$BUILD_METHOD" \

dist/platforms/ubuntu/steps/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ echo "# Build target/prof #"
106106
echo "###########################"
107107
echo ""
108108

109-
echo "$BUILD_TARGET_OR_PROFILE"
109+
echo "${BUILD_TARGET_OR_PROFILE[1]} \"${BUILD_TARGET_OR_PROFILE[2]}\""
110110

111111
echo ""
112112
echo "###########################"
@@ -151,7 +151,7 @@ unity-editor \
151151
$( [ "${MANUAL_EXIT}" == "true" ] || echo "-quit" ) \
152152
-customBuildName "$BUILD_NAME" \
153153
-projectPath "$UNITY_PROJECT_PATH" \
154-
"$BUILD_TARGET_OR_PROFILE[@]" \
154+
"${BUILD_TARGET_OR_PROFILE[@]}" \
155155
-customBuildTarget "$BUILD_TARGET" \
156156
-customBuildPath "$CUSTOM_BUILD_PATH" \
157157
-executeMethod "$BUILD_METHOD" \

0 commit comments

Comments
 (0)