]> git.hungrycats.org Git - linux/commitdiff
zygo: add support for xz tarballs that do not have the word "source" added
authorZygo Blaxell <zblaxell@serenity.furryterror.org>
Sat, 21 Jun 2014 18:32:40 +0000 (14:32 -0400)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Sun, 29 Jun 2014 14:26:38 +0000 (10:26 -0400)
(cherry picked from commit 089e4bc2545da5579fe7d913fb51b0380594fa69)

zygo: spell "tar.xz" correctly
(cherry picked from commit 9ffc2bafd4b6aedcadb40e4700d3c10b4e822c61)

zygo/new-kernel

index 57bccd43eb9fa34eba142ec5d4cae91135c4ec27..c7f655dda385e49422a5f8b1f96aca3b9aa81758 100755 (executable)
@@ -18,6 +18,9 @@ for x in *; do
        elif [ -s /usr/src/"$x".tar.gz ]; then
                trash "$x"
                (cd .. && tar xzf /usr/src/"$x".tar.gz)
+       elif [ -s /usr/src/"$x".tar.xz ]; then
+               trash "$x"
+               (cd .. && tar xf /usr/src/"$x".tar.xz -I xz)
        elif [ -s /usr/src/"$x"-source.tar.gz ]; then
                trash "$x"
                (cd .. && tar xzf /usr/src/"$x"-source.tar.gz)