forked from eth-educators/ethstaker-deposit-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeposit.sh
executable file
·27 lines (23 loc) · 812 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
#!/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
exit 1
fi
echo "Running deposit-cli..."
python3 -m ethstaker_deposit "$@"
elif [[ "$OSTYPE" == "msys" ]] || [[ "$OSTYPE" == "cygwin" ]]; then
echo $OSTYPE
if [[ $1 == "install" ]]; then
echo "Installing dependencies..."
pip install -r requirements.txt
exit 1
fi
echo "Running deposit-cli..."
python -m ethstaker_deposit "$@"
else
echo "Sorry, to run deposit-cli on" $(uname -s)", please see the trouble-shooting on https://github.com/eth-educators/ethstaker-deposit-cli"
exit 1
fi