diff --git a/usr/local/bin/gsl b/usr/local/bin/gsl index bfd726e..899daa1 100755 --- a/usr/local/bin/gsl +++ b/usr/local/bin/gsl @@ -26,15 +26,35 @@ case "$2" in esac } +# Get conf +gsl__if_file "/etc/gsl/gsl.conf" source + +case "$1" in + help|--help|-h) + clear + case "$2" in + "") + gsl__if_file "$gsl_dir_helps/gsl_help" read + ;; + new) + gsl__if_file "$gsl_dir_helps/gsl_infos_new_website" read + ;; + install) + gsl__if_file "$gsl_dir_helps/gsl_help_install" read + ;; + write|-w) + gsl__if_file "$gsl_dir_helps/gsl_help_write_post" read + ;; + esac + ;; +esac + #======================================================================= # Checking Dependancies #======================================================================= # Get Tools gsl__if_file "/var/lib/gsl/scripts/gsl__tools" source -# Get conf -gsl__if_file "/etc/gsl/gsl.conf" source - # Get Logs Manager gsl__if_file "$gsl_dir_scripts/gsl__log_manager" source @@ -257,22 +277,4 @@ case "$1" in clear gsl__if_file "/var/lib/gsl/README.md" read ;; - - help|--help|-h) - clear - case "$2" in - "") - gsl__if_file "$gsl_dir_helps/gsl_help" read - ;; - new) - gsl__if_file "$gsl_dir_helps/gsl_infos_new_website" read - ;; - install) - gsl__if_file "$gsl_dir_helps/gsl_help_install" read - ;; - write|-w) - gsl__if_file "$gsl_dir_helps/gsl_help_write_post" read - ;; - esac - ;; esac