2
0
mirror of https://github.com/mozilla/cipherscan.git synced 2024-11-22 06:13:42 +01:00

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

View File

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