From: Ralph Corderoy Date: Mon, 17 Oct 2016 10:51:32 +0000 (+0100) Subject: Have showbuildenv only indent non-blank lines. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/182be454d9028f166fcfb0f2c41104c59641a826?hp=ab6a6ff3011244795eb920cc577114776f57d63f Have showbuildenv only indent non-blank lines. --- diff --git a/tools/showbuildenv b/tools/showbuildenv index e12bfe35..f5b4b3f7 100755 --- a/tools/showbuildenv +++ b/tools/showbuildenv @@ -11,8 +11,9 @@ # environment. offset () { - sed -e 's/^/ /' + sed -e '/./s/^/ /' } + header () { echo echo $*