Browse Source

updated the getopt for gmod

pull/3518/head
Daniel Gibbs 10 years ago
parent
commit
5a41ee214e
  1. 14
      functions/fn_getopt

14
functions/fn_getopt

@ -2,7 +2,7 @@
# LGSM fn_getopt function # LGSM fn_getopt function
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
# Version: 200615 # Version: 301015
# Description: getopt arguments. # Description: getopt arguments.
@ -123,6 +123,14 @@ case "$getopt" in
fn_restart;; fn_restart;;
update) update)
fn_update_check;; fn_update_check;;
force-update)
forceupdate=1;
fn_update_check;;
update-restart)
forceupdate=1;
fn_update_check;;
update-functions)
fn_update_functions;;
validate) validate)
fn_validate;; fn_validate;;
monitor) monitor)
@ -143,8 +151,10 @@ case "$getopt" in
fn_autoinstall;; fn_autoinstall;;
content) content)
fn_content_gmod;; fn_content_gmod;;
depsdetect)
fn_deps_detect;;
*) *)
echo "Usage: $0 {start|stop|restart|update|validate|monitor|email-test|details|backup|console|debug|install|auto-install|content}" echo "Usage: $0 {start|stop|restart|update|force-update|update-functions|validate|monitor|email-test|details|backup|console|debug|install|auto-install|content}"
exit 1;; exit 1;;
esac esac
exit exit

Loading…
Cancel
Save