fix(install): Improve interactive mode detection and non-interactive installation handling in install.sh
This commit is contained in:
@@ -20,6 +20,11 @@ NUPST is a command-line tool that monitors SNMP-enabled UPS devices and initiate
|
||||
|
||||
```bash
|
||||
# Install directly without cloning the repository (requires root privileges)
|
||||
# This will interactively prompt for installing any dependencies
|
||||
curl -sSL https://code.foss.global/serve.zone/nupst/raw/branch/main/install.sh | sudo bash
|
||||
|
||||
# Install with auto-yes for dependencies (will install git automatically if needed)
|
||||
# Use this for automated/non-interactive installations
|
||||
curl -sSL https://code.foss.global/serve.zone/nupst/raw/branch/main/install.sh | sudo bash -c "bash -s -- -y"
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user