staking-deposit-cli/deposit.sh
Michal Rostecki ad88c1596b deposit.sh: Check for linux* OSTYPE instead of linux-gnu*
Some Linux distributions (i.e. openSUSE) define the OSTYPE environment
variable as "linux" instead of "linux-gnu".

Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>
2020-08-02 14:45:50 +02:00

30 lines
838 B
Bash
Executable File

#!/bin/bash
if [[ "$OSTYPE" == "linux"* ]] || [[ "$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 ./eth2deposit/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 ./eth2deposit/deposit.py "$@"
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
fi