fix: error 1 ; was from logs

This commit is contained in:
Cyrille L 2022-04-11 18:45:33 +02:00
parent 64c30a31a5
commit 783a04b817
3 changed files with 22 additions and 15 deletions

View File

@ -1,5 +1,5 @@
Package: egsl Package: egsl
Version: 0.0.13 Version: 0.0.14
Section: custom Section: custom
Priority: optional Priority: optional
Architecture: all Architecture: all

View File

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
# Version: 0.0.13 # Version: 0.0.14
# file: gsl # file: gsl
# Folder: /usr/local/bin # Folder: /usr/local/bin
# By echolib # By echolib
@ -164,7 +164,7 @@ case "$1" in
done done
gsl__logs_show gsl__logs_show
exit exit 0
;; ;;
version|-v) version|-v)
@ -453,5 +453,20 @@ case "$1" in
;; ;;
esac esac
gsl log -s #----------------------------------------------------------------------
gsl__logs_check # Check for process errors or warnings
#----------------------------------------------------------------------
gsl_logs_last_session=true
gsl__logs_show
if [[ "$gsl_checker_war" ]];then
echo
gsl_logs_war=true
gsl__logs_show
fi
if [[ "$gsl_checker_war" ]];then
echo
gsl_logs_err=true
gsl__logs_show
fi

View File

@ -4,17 +4,9 @@
# By echolib # By echolib
# License: GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007 # License: GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007
#----------------------------------------------------------------------- #----------------------------------------------------------------------
# Print in log file # Print in log file
#----------------------------------------------------------------------- #----------------------------------------------------------------------
gsl__logs_check() {
[[ "$gsl_checker_war" ]] \
&& echo && gsl log -s -w
[[ "$gsl_checker_err" ]] \
&& echo && gsl log -s -e
}
gsl__logs_print() { gsl__logs_print() {
#1: Level #1: Level
#2: Type #2: Type