From: Michael Prokop Date: Mon, 17 Sep 2007 21:39:33 +0000 (+0200) Subject: /etc/grml/lsb-functions: another few bugfixes by ft (thanks) X-Git-Tag: 0.3.30 X-Git-Url: https://git.grml.org/?a=commitdiff_plain;h=157adfaa3b8d6182cffdf96e88d785bdef9c852a;hp=2c047a3855a389f377dfb3d0c539d081c3d742e2;p=grml-etc-core.git /etc/grml/lsb-functions: another few bugfixes by ft (thanks) --- diff --git a/debian/changelog b/debian/changelog index 43da131..75d62db 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +grml-etc-core (0.3.30) unstable; urgency=low + + [ Frank Terbeck ] + * /etc/grml/lsb-functions: another few bugfixes + + -- Michael Prokop Mon, 17 Sep 2007 23:39:11 +0200 + grml-etc-core (0.3.29) unstable; urgency=low [ Frank Terbeck ] diff --git a/etc/grml/lsb-functions b/etc/grml/lsb-functions index 07abdd3..2aa0c77 100644 --- a/etc/grml/lsb-functions +++ b/etc/grml/lsb-functions @@ -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 @@ -200,7 +199,7 @@ esyslog() { # 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 )) } @@ -210,7 +209,7 @@ eindent() { # 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 )) } @@ -221,7 +220,7 @@ eoutdent() { # num defaults to 0 # esetdent() { - local i="$1" + local i="${1:-0}" [ "$i" -lt 0 ] && i=0 RC_INDENTATION="$(printf "%${i}s" '')" }