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
Version: 0.0.13
Version: 0.0.14
Section: custom
Priority: optional
Architecture: all

View File

@ -1,5 +1,5 @@
#!/bin/bash
# Version: 0.0.13
# Version: 0.0.14
# file: gsl
# Folder: /usr/local/bin
# By echolib
@ -164,7 +164,7 @@ case "$1" in
done
gsl__logs_show
exit
exit 0
;;
version|-v)
@ -453,5 +453,20 @@ case "$1" in
;;
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
# License: GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007
#-----------------------------------------------------------------------
#----------------------------------------------------------------------
# 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() {
#1: Level
#2: Type