mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-11-05 07:23:42 +01:00
94316df50c
Just to mark a proper separation before the execution of the main process
30 lines
870 B
Bash
Executable File
30 lines
870 B
Bash
Executable File
#!/bin/bash
|
|
pushd "$(dirname ${BASH_SOURCE[0]})" > /dev/null
|
|
if [ ! -d ./tlslite ]; then
|
|
git clone --depth=1 https://github.com/tomato42/tlslite-ng.git .tlslite-ng --quiet
|
|
ln -s .tlslite-ng/tlslite tlslite
|
|
echo -e "\n${BASH_SOURCE[0]}: tlslite-ng not found, downloaded."
|
|
|
|
fi
|
|
if [ ! -d ./ecdsa ]; then
|
|
git clone --depth=1 https://github.com/warner/python-ecdsa.git .python-ecdsa --quiet
|
|
ln -s .python-ecdsa/src/ecdsa ecdsa
|
|
echo -e "${BASH_SOURCE[0]}: python-ecdsa not found, downloaded.\n"
|
|
fi
|
|
|
|
# update the code if it is running in interactive terminal
|
|
#if [[ -t 1 ]]; then
|
|
if [[ $UPDATE ]]; then
|
|
pushd .tlslite-ng >/dev/null
|
|
git pull origin master --quiet
|
|
popd >/dev/null
|
|
pushd .python-ecdsa >/dev/null
|
|
git pull origin master --quiet
|
|
popd >/dev/null
|
|
fi
|
|
|
|
PYTHONPATH=. python cscan.py "$@"
|
|
ret=$?
|
|
popd > /dev/null
|
|
exit $ret
|