Update debug messages
This commit is contained in:
parent
72a1db6ae6
commit
490938422d
|
@ -118,6 +118,7 @@ error_message() { # {{{
|
||||||
# }}}
|
# }}}
|
||||||
define_vars() { # {{{
|
define_vars() { # {{{
|
||||||
|
|
||||||
|
debug_message "-- define_vars BEGIN"
|
||||||
## If request_status wasn't defined (argument) {{{
|
## If request_status wasn't defined (argument) {{{
|
||||||
if [ -z "${request_status-}" ]; then
|
if [ -z "${request_status-}" ]; then
|
||||||
## Use default value
|
## Use default value
|
||||||
|
@ -140,6 +141,7 @@ define_vars() { # {{{
|
||||||
is_command_available "dpkg" "| " \
|
is_command_available "dpkg" "| " \
|
||||||
&& forticlient_current_version=$(dpkg --list -- forticlient | awk '/^ii *forticlient/ {print $3}' | sed 's/.:\(.*\)-.*/\1/')
|
&& 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 all vars
|
||||||
define_vars
|
define_vars
|
||||||
debug_message "| Define vars"
|
|
||||||
|
|
||||||
## If forticlient version is lower than expected one (7) {{{
|
## If forticlient version is lower than expected one (7) {{{
|
||||||
### Exit with error
|
### Exit with error
|
||||||
|
|
Loading…
Reference in New Issue