fix: error 1 ; was from logs
This commit is contained in:
parent
64c30a31a5
commit
783a04b817
2
control
2
control
|
@ -1,5 +1,5 @@
|
|||
Package: egsl
|
||||
Version: 0.0.13
|
||||
Version: 0.0.14
|
||||
Section: custom
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue