]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
lsinitrd.sh: get rid of awk call
authorHarald Hoyer <harald@redhat.com>
Tue, 3 Jul 2012 16:23:59 +0000 (18:23 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 3 Jul 2012 16:23:59 +0000 (18:23 +0200)
lsinitrd.sh

index f27f7558905c7dd052b30e4d793b1ec15e37a280..fc4b8b03827a783ed9b5e758f772656f1ac3ea72 100755 (executable)
@@ -63,7 +63,7 @@ if [[ $# -eq 2 ]]; then
     exit $?
 fi
 
-echo "$image: $(du -h $image | awk '{print $1}')"
+echo "$image: $(du -h $image | while read a b; do echo $a;done)"
 echo "========================================================================"
 $CAT "$image" | cpio --extract --verbose --quiet --to-stdout 'lib/dracut/dracut-*' 2>/dev/null
 echo "========================================================================"