staking-deposit-cli/deposit.sh

30 lines
863 B
Bash
Raw Normal View History

2020-05-12 07:35:56 +00:00
#!/bin/bash
if [[ "$OSTYPE" == "linux-gnu"* ]] || [[ "$OSTYPE" == "darwin"* ]]; then
echo $OSTYPE
2020-05-21 19:37:43 +00:00
if [[ $1 == "install" ]]; then
echo "Installing dependencies..."
python3 -m pip3 install -r requirements.txt
2020-05-12 07:35:56 +00:00
python3 setup.py install
exit 1
fi
2020-05-21 19:37:43 +00:00
echo "Running deposit-cli..."
python3 ./eth2deposit/deposit.py "$@"
2020-05-12 07:35:56 +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
exit 1
fi
2020-05-21 19:37:43 +00:00
echo "Running deposit-cli..."
python ./eth2deposit/deposit.py "$@"
2020-05-12 07:35:56 +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
fi