fix: Prevent script exit on dependency check

- Add '|| true' to check_dependencies call to prevent exit on non-zero return
- Remove unused return statement from check_dependencies
- Now script continues to install missing dependencies automatically
- Fixes issue with 'set -e' causing premature exit

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-05 16:21:56 +03:00
parent c091704581
commit 426bfa6ab5
+2 -4
View File
@@ -150,8 +150,6 @@ check_dependencies() {
if ! check_dependency "nginx" "Nginx" "nginx -v"; then
missing_deps+=("nginx")
fi
return ${#missing_deps[@]}
}
# Install missing dependencies
@@ -457,8 +455,8 @@ main() {
get_validator_number "$1"
# Check dependencies
check_dependencies
local dep_count=$?
check_dependencies || true
local dep_count=${#missing_deps[@]}
# Install missing dependencies if any
if [ $dep_count -gt 0 ] || [ $RUST_MISSING -eq 1 ] || [ $NODE_MISSING -eq 1 ]; then