forked from ethereum/staking-deposit-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deposit.sh
executable file
·29 lines (25 loc) · 886 Bytes
/
deposit.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
if [[ "$OSTYPE" == "linux"* ]] || [[ "$OSTYPE" == "linux-android"* ]] || [[ "$OSTYPE" == "darwin"* ]]; then
echo $OSTYPE
if [[ $1 == "install" ]]; then
echo "Installing dependencies..."
pip3 install -r requirements.txt
python3 setup.py install
exit 1
fi
echo "Running deposit-cli..."
python3 ./staking_deposit/deposit.py "$@"
elif [[ "$OSTYPE" == "msys" ]] || [[ "$OSTYPE" == "cygwin" ]]; then
echo $OSTYPE
if [[ $1 == "install" ]]; then
echo "Installing dependencies..."
pip install -r requirements.txt
python setup.py install
exit 1
fi
echo "Running deposit-cli..."
python ./staking_deposit/deposit.py "$@"
else
echo "Sorry, to run deposit-cli on" $(uname -s)", please see the trouble-shooting on https://github.com/ethereum/staking-deposit-cli"
exit 1
fi