diff --git a/.ci/get_build_matrix.sh b/.ci/get_build_matrix.sh index abbdc9e60e..45d256a734 100755 --- a/.ci/get_build_matrix.sh +++ b/.ci/get_build_matrix.sh @@ -56,17 +56,19 @@ BUILD_ORDER=$(catkin list -u) FIRST=true +RESULT='{"matrix": [' + for PACKAGE in $BUILD_ORDER; do if $FIRST; then - RESULT="[$PACKAGE" + RESULT=$RESULT\"$PACKAGE\" FIRST=false else - RESULT="$RESULT, $PACKAGE" + RESULT="$RESULT, \"$PACKAGE\"" fi done -RESULT="$RESULT]" +RESULT="$RESULT]}" echo $RESULT