fix(install): Improve interactive mode detection and non-interactive installation handling in install.sh

This commit is contained in:
2025-03-25 13:08:28 +00:00
parent e68654a022
commit 55c040df82
4 changed files with 48 additions and 3 deletions

View File

@@ -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"
```