Fix integer expected bash syntax limit in $#

This commit is contained in:
xtcnet 2026-03-07 21:00:56 +07:00
parent 6c2d4a6a13
commit e90253ca72

View file

@ -178,10 +178,10 @@ function menu() {
} }
# Run menu if no arguments, else run the command # Run menu if no arguments, else run the command
if [ $# -eq 0 ]; then if [ "$#" -eq 0 ]; then
menu menu
else else
case $1 in case "$1" in
install) install_npm_wg ;; install) install_npm_wg ;;
uninstall) uninstall_npm_wg ;; uninstall) uninstall_npm_wg ;;
reset) reset_password ;; reset) reset_password ;;