Skip to content
Snippets Groups Projects
Unverified Commit ea0edc3a authored by Nils Dagsson Moskopp's avatar Nils Dagsson Moskopp
Browse files

Add dofile to download kernel archive

parent 5d546324
No related branches found
No related tags found
No related merge requests found
all.do 0 → 100644
redo-ifchange linux.tar.gz
redo-always
URL="https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/snapshot/linux-5.7-rc6.tar.gz"
UA="reform-system-image/2020-05-21"
curl --head --silent --user-agent "${UA}" "${URL}" \
|grep '^ETag: ' \
|redo-stamp
>"${3}" curl --user-agent "${UA}" "${URL}"
FILETYPE=$(file --mime "${3}")
case "${FILETYPE}" in
*": application/gzip; charset=binary") ;;
*) exit 1 ;;
esac
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment