fix(installer): improve cnode verification check in deploy.sh

This commit is contained in:
unclecode
2025-10-21 09:46:15 +08:00
parent 02f0e4787a
commit 7fe985cbfa

View File

@@ -159,13 +159,14 @@ if ! command -v cnode &> /dev/null; then
exit 1
fi
if ! cnode --help &> /dev/null; then
# Test cnode (allow non-zero exit for --help which exits with 0 normally)
if cnode --help >/dev/null 2>&1; then
echo -e "${GREEN}✓ Installation verified${NC}"
else
echo -e "${RED}Error: cnode command failed${NC}"
exit 1
fi
echo -e "${GREEN}✓ Installation verified${NC}"
# Success message
echo -e "\n${GREEN}╔══════════════════════════════════════════════════════════════╗${NC}"
echo -e "${GREEN}║ Installation Complete! ║${NC}"