Fix syntax error in script arguments parsing
This commit is contained in:
parent
08a732f812
commit
6c2d4a6a13
1 changed files with 3 additions and 3 deletions
|
|
@ -178,14 +178,14 @@ 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 ;;
|
||||||
update) update_npm_wg ;;
|
update) update_npm_wg ;;
|
||||||
*) echo -e "Usage: \$0 {install|uninstall|reset|update}" ;;
|
*) echo -e "Usage: $0 {install|uninstall|reset|update}" ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue