summaryrefslogtreecommitdiff
path: root/run.sh
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2019-12-12 17:46:18 +0000
committermo khan <mo.khan@gmail.com>2019-12-12 17:46:18 +0000
commitfcd3ec047d42a3c5cd44c5c4ce1dd525fe0f52fc (patch)
treecbc0093ed1113b8347d73618660d94b150477d61 /run.sh
parent1decc44a7ae62d9bc713c7b9696638a5be1df563 (diff)
parentf3336b082bf2c8de049f78449efb7fec24e0c9ba (diff)
Merge branch '37109-license-finder-5-11-1' into 'master'v2.2.0
Upgrade license finder to 5.11.1 See merge request gitlab-org/security-products/license-management!90
Diffstat (limited to 'run.sh')
-rwxr-xr-xrun.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/run.sh b/run.sh
index 30d1eff..096447b 100755
--- a/run.sh
+++ b/run.sh
@@ -69,11 +69,13 @@ fi
case "$LM_PYTHON_VERSION" in
"2"|"2.7")
echo "using python $LM_PYTHON_VERSION"
+ LICENSE_FINDER_CLI_OPTS="--python-version 2 $LICENSE_FINDER_CLI_OPTS"
pip --version
;;
"3"|"3.5")
echo "switching to python $LM_PYTHON_VERSION"
+ LICENSE_FINDER_CLI_OPTS="--python-version 3 $LICENSE_FINDER_CLI_OPTS"
pip3 install --upgrade --no-index -f "file://$LOCAL_PYPI_INDEX" "pip==$VERSION_OF_PIP"
update-alternatives --install /usr/bin/python python /usr/bin/python3.5 1
pip --version
@@ -172,6 +174,9 @@ case "$COMMAND" in
gradle build
skip_prepare=true
fi
+ if [[ $(ls ./*.sln 2> /dev/null) ]]; then
+ LICENSE_FINDER_CLI_OPTS="--recursive $LICENSE_FINDER_CLI_OPTS"
+ fi
else
echo "Running '${SETUP_CMD[@]}' to install project dependencies..."
${SETUP_CMD[@]}