Update debug messages

This commit is contained in:
Jeremy Gardais 2023-05-04 09:49:37 +02:00
parent 72a1db6ae6
commit 490938422d
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 2 additions and 1 deletions

View File

@ -118,6 +118,7 @@ error_message() { # {{{
# }}}
define_vars() { # {{{
debug_message "-- define_vars BEGIN"
## If request_status wasn't defined (argument) {{{
if [ -z "${request_status-}" ]; then
## Use default value
@ -140,6 +141,7 @@ define_vars() { # {{{
is_command_available "dpkg" "| " \
&& forticlient_current_version=$(dpkg --list -- forticlient | awk '/^ii *forticlient/ {print $3}' | sed 's/.:\(.*\)-.*/\1/')
## }}}
debug_message "-- define_vars END"
}
# }}}
@ -205,7 +207,6 @@ main() { # {{{
## Define all vars
define_vars
debug_message "| Define vars"
## If forticlient version is lower than expected one (7) {{{
### Exit with error