[arch-projects] [mkinitcpio] [PATCH 2/3] lsinitcpio: return success based on echo, not hexdump

Dave Reisner dreisner at archlinux.org
Wed Sep 11 08:14:53 EDT 2013


The impetus for doing this was a bug in util-linux's hexdump which never
saw a release. For uniformity, simply echo an empty line here.

Signed-off-by: Dave Reisner <dreisner at archlinux.org>
---
 lsinitcpio | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lsinitcpio b/lsinitcpio
index 5f19326..0c9d05d 100755
--- a/lsinitcpio
+++ b/lsinitcpio
@@ -72,6 +72,7 @@ detect_filetype() {
     case $(hexdump -n 6 -e '"%c"' "$1") in
         '070701')
             # no compression
+            echo
             return
             ;;
         $'\xfd7zXZ')
-- 
1.8.4



More information about the arch-projects mailing list