From 3ecd5c589547419abc69f730d0e842fd8834a7c9 Mon Sep 17 00:00:00 2001 From: Ergin Babani Date: Tue, 7 Nov 2017 13:13:31 -0500 Subject: [PATCH] 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. --- cscan.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cscan.sh b/cscan.sh index 0572d66..2d2eb86 100755 --- a/cscan.sh +++ b/cscan.sh @@ -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