fix(installer): improve cnode verification check in deploy.sh
This commit is contained in:
@@ -159,13 +159,14 @@ if ! command -v cnode &> /dev/null; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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}"
|
echo -e "${RED}Error: cnode command failed${NC}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "${GREEN}✓ Installation verified${NC}"
|
|
||||||
|
|
||||||
# Success message
|
# Success message
|
||||||
echo -e "\n${GREEN}╔══════════════════════════════════════════════════════════════╗${NC}"
|
echo -e "\n${GREEN}╔══════════════════════════════════════════════════════════════╗${NC}"
|
||||||
echo -e "${GREEN}║ Installation Complete! ║${NC}"
|
echo -e "${GREEN}║ Installation Complete! ║${NC}"
|
||||||
|
|||||||
Reference in New Issue
Block a user