noninteractive

This commit is contained in:
Collin Jackson 2024-10-08 17:18:57 -07:00
parent 26dc9bf576
commit 68f7a53737
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ Command line interface (CLI) for accessing the Nexus Network. Highest-performanc
## Quick start ## Quick start
``` ```
curl https://network-cli.nexus.xyz/install.sh | sh curl https://cli.nexus.xyz/install.sh | sh
``` ```
If you do not already have Rust, you will be prompted to install it. If you do not already have Rust, you will be prompted to install it.
@ -15,7 +15,7 @@ If you do not already have Rust, you will be prompted to install it.
Use of the CLI is subject to the [Terms of Use](https://nexus.xyz/terms_of_use). Use of the CLI is subject to the [Terms of Use](https://nexus.xyz/terms_of_use).
The first time you run it, it prompts you to accept the terms. To accept the terms The first time you run it, it prompts you to accept the terms. To accept the terms
noninteractively (for example, in a continuous integration environment), noninteractively (for example, in a continuous integration environment),
add `NONINTERACTIVE=1` at the start of the command. add `NONINTERACTIVE=1` before `sh`.
## Known issues ## Known issues

View File

@ -3,7 +3,7 @@
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
while true; do while [ -z "$NONINTERACTIVE" ]; do
read -p "Do you agree to the Nexus Beta Terms of Use (https://nexus.xyz/terms-of-use)? (Y/n) " yn </dev/tty read -p "Do you agree to the Nexus Beta Terms of Use (https://nexus.xyz/terms-of-use)? (Y/n) " yn </dev/tty
case $yn in case $yn in
[Yy]* ) break;; [Yy]* ) break;;