Skip to content

DEBUG not working properly #6

@GoogleCodeExporter

Description

@GoogleCodeExporter
in version 2.00-beta-2
cmd() doesn't properly test the DEBUG flag.
init() forced DEBUG to "no", which imho doesn't make sense as it works 
differently from all other settings.

--- bsfl
+++ bsfl
@@ -33,7 +33,10 @@
     # Debug mode shows more verbose output to screen and log files.
     # Value: yes or no (y / n)
     #
-    DEBUG=no
+    if ! defined DEBUG
+    then
+        DEBUG=no
+    fi

     #
     # Syslog style log messages
@@ -534,7 +537,7 @@
     if [ "$ERROR" == "0" ]
     then
         msg_ok "$MSG"
-        if [ "$DEBUG" == "1" ]
+        if option_enabled DEBUG
         then
             msg "$RESULT"
         fi

Original issue reported on code.google.com by crusade...@gmail.com on 13 Jun 2013 at 9:20

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions