mirror of
https://github.com/pezkuwichain/pezkuwi-validator-v1.0.0.git
synced 2026-06-13 05:31:00 +00:00
fix: Make dependency variables global for automatic installation
- Move missing_deps, RUST_MISSING, and NODE_MISSING to global scope - Fixes bug where install_dependencies couldn't access missing_deps array - Now setup script will automatically install missing dependencies - Improves user experience for first-time validators 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -66,11 +66,16 @@ get_validator_number() {
|
||||
echo -e "${GREEN}Setting up Validator $VALIDATOR_NUM${NC}"
|
||||
}
|
||||
|
||||
# Global variables for dependencies
|
||||
missing_deps=()
|
||||
RUST_MISSING=0
|
||||
NODE_MISSING=0
|
||||
|
||||
# Check system dependencies
|
||||
check_dependencies() {
|
||||
print_header "Checking System Dependencies"
|
||||
|
||||
local missing_deps=()
|
||||
missing_deps=()
|
||||
|
||||
# Essential build tools
|
||||
if ! check_dependency "git" "Git" "git --version"; then
|
||||
|
||||
Reference in New Issue
Block a user