From 7fe985cbfa54dc87667dfd92dcc5bee5c40585f9 Mon Sep 17 00:00:00 2001 From: unclecode Date: Tue, 21 Oct 2025 09:46:15 +0800 Subject: [PATCH] fix(installer): improve cnode verification check in deploy.sh --- deploy/installer/deploy.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/deploy/installer/deploy.sh b/deploy/installer/deploy.sh index d14a006a..a5888591 100755 --- a/deploy/installer/deploy.sh +++ b/deploy/installer/deploy.sh @@ -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}"