summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-09-03 01:19:12 +0200
committerDave Reisner <dreisner@archlinux.org>2013-09-07 16:04:32 +0200
commitd0cbe1615281a935d492cc1fd7542198f22f71ad (patch)
treef93f89e90cc07bfa225d99de7fdd40d5b186d3b0
parentb5927393d103af9b8b2da80e8636b8aa52f80755 (diff)
downloadmkinitcpio-d0cbe1615281a935d492cc1fd7542198f22f71ad.tar.gz
mkinitcpio-d0cbe1615281a935d492cc1fd7542198f22f71ad.tar.xz
lsinitcpio: return success based on echo, not hexdump
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@archlinux.org>
-rwxr-xr-xlsinitcpio1
1 files changed, 1 insertions, 0 deletions
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')