Commit 3631ff19 authored by Emeric Verschuur's avatar Emeric Verschuur

[ci-toolbox] Fix CITBX_VERSION_REQ_MIN test to prevent recursive 'ci-toolbox setup' call

parent 91e61dbb
......@@ -26,7 +26,7 @@ fi
citbx_env_init
# Check minimum version if required
if [ -n "$CITBX_VERSION_REQ_MIN" ] \
if [ -n "$CITBX_VERSION_REQ_MIN" ] && [ "$1" != "setup" ] \
&& [ $(printf "%d%04d%04d" ${CITBX_VERSION//[^0-9]/ }) \
-lt $(printf "%d%04d%04d" ${CITBX_VERSION_REQ_MIN//[^0-9]/ }) ]; then
print_warning "This project require CI-Toolbox version $CITBX_VERSION_REQ_MIN or greater" \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment