Skip to content

Commit 5019402

Browse files
ci: Remove bash -c from cmake invocation using eval
1 parent f41f972 commit 5019402

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ci/test/03_test_script.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ if [[ "${RUN_TIDY}" == "true" ]]; then
130130
BITCOIN_CONFIG_ALL="$BITCOIN_CONFIG_ALL -DCMAKE_EXPORT_COMPILE_COMMANDS=ON"
131131
fi
132132

133-
bash -c "cmake -S $BASE_ROOT_DIR -B ${BASE_BUILD_DIR} $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG" || (
133+
eval "CMAKE_ARGS=($BITCOIN_CONFIG_ALL $BITCOIN_CONFIG)"
134+
cmake -S "$BASE_ROOT_DIR" -B "$BASE_BUILD_DIR" "${CMAKE_ARGS[@]}" || (
134135
cd "${BASE_BUILD_DIR}"
135136
# shellcheck disable=SC2046
136137
cat $(cmake -P "${BASE_ROOT_DIR}/ci/test/GetCMakeLogFiles.cmake")

0 commit comments

Comments
 (0)