debug func return 0 to allow chain function

This commit is contained in:
Jeremy Gardais 2020-08-20 10:02:11 +02:00
parent 5a2fb8c13b
commit c1d23c04f6
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
7 changed files with 7 additions and 0 deletions

View File

@ -69,6 +69,7 @@ debug_message() { # {{{
## Print message if DEBUG is enable (=0)
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6b\e[m\n' "DEBUG ${PROGNAME}: ${local_message}"
return 0
}
# }}}
is_apt_upgrade_absent() { # {{{

View File

@ -64,6 +64,7 @@ debug_message() { # {{{
## Print message if DEBUG is enable (=0)
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6b\e[m\n' "DEBUG ${PROGNAME}: ${local_message}"
return 0
}
# }}}
is_apt_upgrade_absent() { # {{{

View File

@ -70,6 +70,7 @@ debug_message() { # {{{
## Print message if DEBUG is enable (=0)
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6b\e[m\n' "DEBUG ${PROGNAME}: ${local_message}"
return 0
}
# }}}
is_apt_upgrade_present() { # {{{

View File

@ -76,6 +76,7 @@ debug_message() { # {{{
## Print message if DEBUG is enable (=0)
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6b\e[m\n' "DEBUG ${PROGNAME}: ${local_debug_message}"
return 0
}
# }}}
message() { # {{{

View File

@ -42,6 +42,7 @@ debug_message() { # {{{
## Print message if DEBUG is enable (=0)
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6b\e[m\n' "DEBUG ${PROGNAME}: ${local_message}"
return 0
}
# }}}
is_proc_running() { # {{{

View File

@ -51,6 +51,7 @@ debug_message() { # {{{
## Print message if DEBUG is enable (=0)
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6b\e[m\n' "DEBUG ${PROGNAME}: ${local_debug_message}"
return 0
}
# }}}
define_vars() { # {{{

View File

@ -71,6 +71,7 @@ debug_message() { # {{{
## Print message if DEBUG is enable (=0)
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6b\e[m\n' "DEBUG ${PROGNAME}: ${local_debug_message}"
return 0
}
# }}}
message() { # {{{