Commit 40548975 authored by Michael Völske's avatar Michael Völske

bashhelper: improve debug flag handling

parent d2f12473
......@@ -31,7 +31,7 @@ logInfo() {
# Printout debug info if debug enabled.
#
logDebug() {
$(is_var_set WEBIS_DEBUG) && echo -e "\033[94m[DEBUG]\033[0m $@" 1>&2;
$(is_var_set WEBIS_DEBUG) && echo -e "\033[94m[DEBUG]\033[0m $@" 1>&2 || true;
}
#
......@@ -263,7 +263,7 @@ get_group() {
# Example:
# is_var_set FOO && echo "yay! FOO is set!"
is_var_set() {
[ ! -z ${!1+x} ]
[ ! -z "${!1+x}" ]
}
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment