]> 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>
Sat, 21 Jun 2014 18:32:40 +0000 (14:32 -0400)
zygo/new-kernel

index 57bccd43eb9fa34eba142ec5d4cae91135c4ec27..7add9dadd5356b18e43e300b385dc7e52611a282 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".xz -I xz)
        elif [ -s /usr/src/"$x"-source.tar.gz ]; then
                trash "$x"
                (cd .. && tar xzf /usr/src/"$x"-source.tar.gz)