Skip to content

Commit

Permalink
ctl tools: Fix errors in verbose mode
Browse files Browse the repository at this point in the history
(cherry picked from commit a1332cb)
  • Loading branch information
liviuchircu committed Apr 19, 2018
1 parent f439585 commit cd64975
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/opensipsctl.base
Expand Up @@ -561,7 +561,7 @@ USAGE_FUNCTIONS="$USAGE_FUNCTIONS usage_registrant"


mdbg() {
if [ "0$VERBOSE" -ne 0 ] ; then
if [ -n "$VERBOSE" ] ; then
if [ -t 1 -a -z "$NOHLPRINT" ] ; then
echo -e "\033[1m$1\033[0m"
else
Expand Down
2 changes: 1 addition & 1 deletion scripts/opensipsdbctl.base
Expand Up @@ -129,7 +129,7 @@ credentials()
# FIXME use the definition from opensipsctl.base

mdbg() {
if [ "0$VERBOSE" -ne 0 ] ; then
if [ -n "$VERBOSE" ] ; then
if [ -t 1 -a -z "$NOHLPRINT" ] ; then
echo -e "\033[1m$1\033[0m"
else
Expand Down

0 comments on commit cd64975

Please sign in to comment.