From: Philipp Hahn Date: Fri, 25 Nov 2016 15:01:29 +0000 (+0100) Subject: Strip leading spaces in get_lsb_header_val X-Git-Tag: archive/raspbian/10.2018112800+rpi1^2~19 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0b050199e452365546ea87393017b2ed83862985;p=lsb.git Strip leading spaces in get_lsb_header_val Closes: #837639 --- diff --git a/init-functions b/init-functions index cb8874c..a8c9c2c 100644 --- a/init-functions +++ b/init-functions @@ -260,7 +260,7 @@ get_lsb_header_val () { fi LSB_S="### BEGIN INIT INFO" LSB_E="### END INIT INFO" - sed -n "/$LSB_S/,/$LSB_E/ s/# $2: \(.*\)/\1/p" $1 + sed -n "/$LSB_S/,/$LSB_E/ s/# $2: \+\(.*\)/\1/p" "$1" } # If the currently running init daemon is upstart, return zero; if the