Skip to content

Instantly share code, notes, and snippets.

set -e -x
if test -f "linux.tar.gz"; then
echo "linux.tar.gz already exits"
else
echo "download and create linux.tar.gz"
curl -o- https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.12.4.tar.xz | xz -d | tee linux.tar.ref | gzip > linux.tar.gz
fi