2020-05-12 07:35:56 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-05-21 16:18:09 +00:00
|
|
|
if [[ "$OSTYPE" == "linux-gnu"* ]] || [[ "$OSTYPE" == "darwin"* ]]; then
|
|
|
|
echo $OSTYPE
|
2020-05-21 19:37:43 +00:00
|
|
|
if [[ $1 == "install" ]]; then
|
|
|
|
echo "Installing dependencies..."
|
2020-05-21 16:18:09 +00:00
|
|
|
python3 -m pip3 install -r requirements.txt
|
2020-05-12 07:35:56 +00:00
|
|
|
python3 setup.py install
|
2020-05-21 16:18:09 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
2020-05-21 19:37:43 +00:00
|
|
|
echo "Running deposit-cli..."
|
2020-05-21 16:18:09 +00:00
|
|
|
python3 ./eth2deposit/deposit.py "$@"
|
2020-05-12 07:35:56 +00:00
|
|
|
|
2020-05-21 16:18:09 +00:00
|
|
|
elif [[ "$OSTYPE" == "msys" ]] || [[ "$OSTYPE" == "cygwin" ]]; then
|
|
|
|
echo $OSTYPE
|
2020-05-21 19:37:43 +00:00
|
|
|
if [[ $1 == "install" ]]; then
|
|
|
|
echo "Installing dependencies..."
|
2020-05-12 08:32:17 +00:00
|
|
|
python -m pip install -r requirements.txt
|
|
|
|
python setup.py install
|
2020-05-21 16:18:09 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
2020-05-21 19:37:43 +00:00
|
|
|
echo "Running deposit-cli..."
|
2020-05-21 16:18:09 +00:00
|
|
|
python ./eth2deposit/deposit.py "$@"
|
2020-05-12 07:35:56 +00:00
|
|
|
|
2020-05-21 16:18:09 +00:00
|
|
|
else
|
|
|
|
echo "Sorry, to run deposit-cli on" $(uname -s)", please see the trouble-shooting on https://github.com/ethereum/eth2.0-deposit-cli"
|
|
|
|
exit 1
|
2020-05-12 07:35:56 +00:00
|
|
|
|
2020-05-21 16:18:09 +00:00
|
|
|
fi
|