Skip to content
Snippets Groups Projects
Commit 893d2a02 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

CI: safe parsing of sb_branch.txt

parent e6d000d7
Branches
Tags
No related merge requests found
......@@ -57,7 +57,7 @@ macro(get_xdk)
# How to get md5sum:
# * concatenate all source files in one
# * add configure result from previous job ${OTB_SOURCE_DIR}/build/CMakeCache.txt
file(READ "${OTB_SOURCE_DIR}/sb_branch.txt" BRANCH_NAME)
file(STRINGS "${OTB_SOURCE_DIR}/sb_branch.txt" BRANCH_NAME LIMIT_COUNT 1 REGEX "^([A-Za-z0-9]|/|-|_|\\.)+" )
# Look for a GIT command-line client.
find_program(CTEST_GIT_COMMAND NAMES git git.cmd)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment