]> diplodocus.org Git - nmh/commitdiff
Have showbuildenv only indent non-blank lines.
authorRalph Corderoy <ralph@inputplus.co.uk>
Mon, 17 Oct 2016 10:51:32 +0000 (11:51 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Mon, 17 Oct 2016 10:51:32 +0000 (11:51 +0100)
tools/showbuildenv

index e12bfe3..f5b4b3f 100755 (executable)
@@ -11,8 +11,9 @@
 # environment.
 
 offset () {
 # environment.
 
 offset () {
-    sed -e 's/^/    /'
+    sed -e '/./s/^/    /'
 }
 }
+
 header () {
     echo
     echo $*
 header () {
     echo
     echo $*