Redirect dependency download output to stderr

If running `analyze.py` for the first time the dependency downloading
output would be part of the json, and the command would fail due to
invalid json data.
This commit is contained in:
Ergin Babani 2017-11-07 13:13:31 -05:00
parent 17dcd0dc05
commit 3ecd5c5895
1 changed files with 4 additions and 4 deletions

View File

@ -1,13 +1,13 @@
#!/bin/bash
pushd "$(dirname ${BASH_SOURCE[0]})" > /dev/null
if [ ! -d ./tlslite ]; then
echo -e "\n${BASH_SOURCE[0]}: tlslite-ng not found, downloading..."
git clone --depth=1 https://github.com/tomato42/tlslite-ng.git .tlslite-ng
echo -e "\n${BASH_SOURCE[0]}: tlslite-ng not found, downloading..." 1>&2
git clone --depth=1 https://github.com/tomato42/tlslite-ng.git .tlslite-ng 1>&2
ln -s .tlslite-ng/tlslite tlslite
fi
if [ ! -d ./ecdsa ]; then
echo -e "\n${BASH_SOURCE[0]}: python-ecdsa not found, downloading..."
git clone --depth=1 https://github.com/warner/python-ecdsa.git .python-ecdsa
echo -e "\n${BASH_SOURCE[0]}: python-ecdsa not found, downloading..." 1>&2
git clone --depth=1 https://github.com/warner/python-ecdsa.git .python-ecdsa 1>&2
ln -s .python-ecdsa/src/ecdsa ecdsa
fi