From f59ddc4e75851b51fcd88eca88f5577fea9ec547 Mon Sep 17 00:00:00 2001 From: tomkaragounis Date: Mon, 4 Nov 2024 14:39:44 -0800 Subject: [PATCH] Fix arg callout in substring expansion (bash) --- build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index ee864d938..3c4de08dd 100755 --- a/build.sh +++ b/build.sh @@ -87,11 +87,11 @@ fi CUSTOM_CMAKE_CXX_FLAG="" if [[ $PARAM1 == CUSTOM_BUILD_FLAGS* ]] || [[ $PARAM2 == CUSTOM_BUILD_FLAGS* ]] || [[ $PARAM3 == CUSTOM_BUILD_FLAGS* ]]; then if [[ $PARAM1 == CUSTOM_BUILD_FLAGS* ]]; then - CUSTOM_CMAKE_CXX_FLAG="\"${1:19:999}\"" + CUSTOM_CMAKE_CXX_FLAG="\"${PARAM1:19:999}\"" elif [[ $PARAM2 == CUSTOM_BUILD_FLAGS* ]]; then - CUSTOM_CMAKE_CXX_FLAG="\"${2:19:999}\"" + CUSTOM_CMAKE_CXX_FLAG="\"${PARAM2:19:999}\"" elif [[ $PARAM3 == CUSTOM_BUILD_FLAGS* ]]; then - CUSTOM_CMAKE_CXX_FLAG="\"${3:19:999}\"" + CUSTOM_CMAKE_CXX_FLAG="\"${PARAM3:19:999}\"" fi shift echo "custom build flags = $CUSTOM_CMAKE_CXX_FLAG"