2020-05-12 07:35:56 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-09-22 11:14:55 +00:00
|
|
|
if [[ "$OSTYPE" == "linux"* ]] || [[ "$OSTYPE" == "linux-android"* ]] || [[ "$OSTYPE" == "darwin"* ]]; then
|
2020-05-21 16:18:09 +00:00
|
|
|
echo $OSTYPE
|
2020-05-21 19:37:43 +00:00
|
|
|
if [[ $1 == "install" ]]; then
|
|
|
|
echo "Installing dependencies..."
|
2020-07-09 14:49:57 +00:00
|
|
|
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-07-09 14:49:57 +00:00
|
|
|
pip install -r requirements.txt
|
2020-05-12 08:32:17 +00:00
|
|
|
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
|