Skip to content

Commit

Permalink
Fix arg callout in substring expansion (bash)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkaragounis committed Nov 4, 2024
1 parent 4166724 commit f59ddc4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f59ddc4

Please sign in to comment.