/etc/grml/lsb-functions: another few bugfixes by ft (thanks) 0.3.30
authorMichael Prokop <mika@grml.org>
Mon, 17 Sep 2007 21:39:33 +0000 (23:39 +0200)
committerMichael Prokop <mika@grml.org>
Mon, 17 Sep 2007 21:39:33 +0000 (23:39 +0200)
1  2 
debian/changelog
etc/grml/lsb-functions

diff --combined debian/changelog
@@@ -1,3 -1,10 +1,17 @@@
++grml-etc-core (0.3.30) unstable; urgency=low
++
++  [ Frank Terbeck ]
++  * /etc/grml/lsb-functions: another few bugfixes
++
++ -- Michael Prokop <mika@grml.org>  Mon, 17 Sep 2007 23:39:11 +0200
++
+ grml-etc-core (0.3.29) unstable; urgency=low
+   [ Frank Terbeck ]
+   * /etc/grml/lsb-functions: another bugfix
+  -- Michael Prokop <mika@grml.org>  Mon, 17 Sep 2007 18:33:30 +0200
  grml-etc-core (0.3.28) unstable; urgency=low
  
    [ Frank Terbeck ]
diff --combined etc/grml/lsb-functions
@@@ -157,7 -157,7 +157,7 @@@ if [ -z "${COLS}" ] || [ "${COLS}" -le 
  fi
  
  if [ "${RC_ENDCOL}" = "yes" ]; then
-       ENDCOL="\e[A\e[$(( ${COLS} - 8 ))G"
+     ENDCOL="\e[A\e[$(( ${COLS} - 8 ))G"
  else
      ENDCOL=''
  fi
@@@ -182,11 -182,12 +182,11 @@@ esyslog() 
      local pri
      local tag
  
 +    [ "$#" -le 2 ] && return 0
      if [ -x /usr/bin/logger ] ; then
          pri="$1"
          tag="$2"
 -
          shift 2
 -        [ "$#" -eq 0 ] && return 0
  
          /usr/bin/logger -p "${pri}" -t "${tag}" -- "$@"
      fi
  #    increase the indent used for e-commands.
  #
  eindent() {
 -    local i="$1"
 +    local i="${1:-0}"
      [ "$i" -gt 0 ] || i="${RC_DEFAULT_INDENT}"
      esetdent $(( ${#RC_INDENTATION} + $i ))
  }
  #    decrease the indent used for e-commands.
  #
  eoutdent() {
 -    local i="$1"
 +    local i="${1:-0}"
      [ "$i" -gt 0 ] || i="${RC_DEFAULT_INDENT}"
      esetdent $(( ${#RC_INDENTATION} - $i ))
  }
  #    num defaults to 0
  #
  esetdent() {
 -    local i="$1"
 +    local i="${1:-0}"
      [ "$i" -lt 0 ] && i=0
      RC_INDENTATION="$(printf "%${i}s" '')"
  }