Need to match the regex again
authorPeter Amstutz <peter.amstutz@curii.com>
Thu, 26 Aug 2021 22:45:56 +0000 (18:45 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Thu, 26 Aug 2021 22:45:56 +0000 (18:45 -0400)
no issue #

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

build/run-build-packages-one-target.sh

index ba16c846554cd8f35f15d523a0b696b3a2047c64..08868141cc2ea52fa90da31295498856645635e2 100755 (executable)
@@ -110,6 +110,7 @@ while [ $# -gt 0 ]; do
                 echo >&2 "FATAL: --build-version '$2' is invalid, must match pattern ^[0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+|)(~rc[0-9]+|~dev[0-9]+|)-[0-9]+$"
                 exit 1
             else
+               [[ "$2" =~ (.*)-(.*) ]]
                 ARVADOS_BUILDING_VERSION="${BASH_REMATCH[1]}"
                 ARVADOS_BUILDING_ITERATION="${BASH_REMATCH[2]}"
             fi