Add new terms prompt
This commit is contained in:
parent
6566b3f928
commit
26dc9bf576
@ -2,18 +2,22 @@
|
|||||||
|
|
||||||
rustc --version || curl https://sh.rustup.rs -sSf | sh
|
rustc --version || curl https://sh.rustup.rs -sSf | sh
|
||||||
NEXUS_HOME=$HOME/.nexus
|
NEXUS_HOME=$HOME/.nexus
|
||||||
CLI_ZIP=/tmp/nexus-network-api.zip
|
|
||||||
curl -L --verbose "https://docs.google.com/uc?export=download&id=1kcbEeKpVEyvIqL-_cgR5sYdZe_fOEPs6" > $CLI_ZIP
|
while true; do
|
||||||
if [ -d "$NEXUS_HOME" ]; then
|
read -p "Do you agree to the Nexus Beta Terms of Use (https://nexus.xyz/terms-of-use)? (Y/n) " yn </dev/tty
|
||||||
echo "$NEXUS_HOME exists. Updating.";
|
case $yn in
|
||||||
(cd $NEXUS_HOME && rm -rf network-api && unzip $CLI_ZIP)
|
[Yy]* ) break;;
|
||||||
# TODO: Once GitHub repo is public, do this instead
|
[Nn]* ) exit;;
|
||||||
# (cd $NEXUS_HOME && git pull)
|
* ) echo "Please answer yes or no.";;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ -d "$NEXUS_HOME/network-api" ]; then
|
||||||
|
echo "$NEXUS_HOME/network-api exists. Updating.";
|
||||||
|
(cd $NEXUS_HOME/network-api && git pull)
|
||||||
else
|
else
|
||||||
# TODO: Once GitHub repo is public, do this instead
|
|
||||||
# git clone git@github.com:nexus-xyz/network-cli $NEXUS_HOME
|
|
||||||
mkdir -p $NEXUS_HOME
|
mkdir -p $NEXUS_HOME
|
||||||
(cd $NEXUS_HOME && unzip $CLI_ZIP)
|
(cd $NEXUS_HOME && git clone git@github.com:nexus-xyz/network-cli)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
(cd $NEXUS_HOME/network-api/clients/cli && cargo run --release --bin prover -- beta.orchestrator.nexus.xyz)
|
(cd $NEXUS_HOME/network-api/clients/cli && cargo run --release --bin prover -- beta.orchestrator.nexus.xyz)
|
||||||
|
Loading…
Reference in New Issue
Block a user