Fix gsl exec for help

This commit is contained in:
Cyrille L 2022-03-13 16:20:44 +01:00
parent 0ade0059c6
commit 37554d982f
1 changed files with 23 additions and 21 deletions

View File

@ -26,15 +26,35 @@ case "$2" in
esac 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 # Checking Dependancies
#======================================================================= #=======================================================================
# Get Tools # Get Tools
gsl__if_file "/var/lib/gsl/scripts/gsl__tools" source gsl__if_file "/var/lib/gsl/scripts/gsl__tools" source
# Get conf
gsl__if_file "/etc/gsl/gsl.conf" source
# Get Logs Manager # Get Logs Manager
gsl__if_file "$gsl_dir_scripts/gsl__log_manager" source gsl__if_file "$gsl_dir_scripts/gsl__log_manager" source
@ -257,22 +277,4 @@ case "$1" in
clear clear
gsl__if_file "/var/lib/gsl/README.md" read 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 esac