Added requested changes

I may change `${BASH_SOURCE[0]}` by ` `basename $BASH_SOURCE` ` if you prefer
This commit is contained in:
Jonathan Barda 2017-01-23 16:12:34 +01:00 committed by GitHub
parent 717b9c0a13
commit 0b1d5331d6
1 changed files with 2 additions and 2 deletions

View File

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