Blame 0031-lsinitrd.sh-get-rid-of-awk-call.patch

Harald Hoyer 2d3fda
From d8caa679e06e779a04e2353cfeab80de47477d2a Mon Sep 17 00:00:00 2001
Harald Hoyer 2d3fda
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 2d3fda
Date: Tue, 3 Jul 2012 18:23:59 +0200
Harald Hoyer 2d3fda
Subject: [PATCH] lsinitrd.sh: get rid of awk call
Harald Hoyer 2d3fda
Harald Hoyer 2d3fda
---
Harald Hoyer 2d3fda
 lsinitrd.sh |    2 +-
Harald Hoyer 2d3fda
 1 file changed, 1 insertion(+), 1 deletion(-)
Harald Hoyer 2d3fda
Harald Hoyer 2d3fda
diff --git a/lsinitrd.sh b/lsinitrd.sh
Harald Hoyer 2d3fda
index f27f755..fc4b8b0 100755
Harald Hoyer 2d3fda
--- a/lsinitrd.sh
Harald Hoyer 2d3fda
+++ b/lsinitrd.sh
Harald Hoyer 2d3fda
@@ -63,7 +63,7 @@ if [[ $# -eq 2 ]]; then
Harald Hoyer 2d3fda
     exit $?
Harald Hoyer 2d3fda
 fi
Harald Hoyer 2d3fda
 
Harald Hoyer 2d3fda
-echo "$image: $(du -h $image | awk '{print $1}')"
Harald Hoyer 2d3fda
+echo "$image: $(du -h $image | while read a b; do echo $a;done)"
Harald Hoyer 2d3fda
 echo "========================================================================"
Harald Hoyer 2d3fda
 $CAT "$image" | cpio --extract --verbose --quiet --to-stdout 'lib/dracut/dracut-*' 2>/dev/null
Harald Hoyer 2d3fda
 echo "========================================================================"