tags 496072 + patch
thanks

The attached patch fixes this problem. It's a bash script, so this should
definitely work, at least it does so here.

Best,
Michael

2008-09-05  Michael Tautschnig  <[EMAIL PROTECTED]>

        * bin/fai-do-scripts: Replace [ "$debug" ] by [ "0$debug" -ge 1 ] to 
enable
                debug output only if $debug is set to a non-zero integer
Index: trunk/bin/fai-do-scripts
===================================================================
--- trunk.orig/bin/fai-do-scripts
+++ trunk/bin/fai-do-scripts    
@@ -86,7 +86,7 @@
 
     # may be remove some day
     case $file in
-       *~) [ "$debug" ] && echo "Skipping backup file $file"
+       *~) [ "0$debug" -ge 1 ] && echo "Skipping backup file $file"
            return ;;
     esac
 
@@ -105,9 +105,9 @@
     shelldebug=
     case $filetype in
        *"POSIX shell script"*|*"Bourne shell script"*)
-           [ "$debug" ] && shelldebug="sh -x" ;;
+           [ "0$debug" -ge 1 ] && shelldebug="sh -x" ;;
        *"Bourne-Again shell script"*)
-           [ "$debug" ] && shelldebug="bash -x" ;;
+           [ "0$debug" -ge 1 ] && shelldebug="bash -x" ;;
     esac
 
     case $filetype in

Attachment: pgprrybfP0GH1.pgp
Description: PGP signature

Reply via email to