Fix syntax error in script arguments parsing

This commit is contained in:
xtcnet 2026-03-07 20:59:07 +07:00
parent 08a732f812
commit 6c2d4a6a13

View file

@ -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