From 6c2d4a6a1361068058b4e0ec2851a471801b5460 Mon Sep 17 00:00:00 2001 From: xtcnet Date: Sat, 7 Mar 2026 20:59:07 +0700 Subject: [PATCH] Fix syntax error in script arguments parsing --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index ed89101..fda05ba 100644 --- a/install.sh +++ b/install.sh @@ -178,14 +178,14 @@ function menu() { } # Run menu if no arguments, else run the command -if [ \$# -eq 0 ]; then +if [ $# -eq 0 ]; then menu else - case \$1 in + case $1 in install) install_npm_wg ;; uninstall) uninstall_npm_wg ;; reset) reset_password ;; update) update_npm_wg ;; - *) echo -e "Usage: \$0 {install|uninstall|reset|update}" ;; + *) echo -e "Usage: $0 {install|uninstall|reset|update}" ;; esac fi