From deeb8e0e5e91f1557706a83857401d7cbbb8e1e0 Mon Sep 17 00:00:00 2001 From: Andrew Kvalheim Date: Wed, 9 Oct 2024 20:44:25 -0700 Subject: [PATCH] Automatically update cached downloads MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Wget supports conditional requests: HTTP request sent, awaiting response... 304 Not Modified File ‘ubuntu-24.04-server-cloudimg-amd64-root.tar.xz’ not modified on server. Omitting download. --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 2918db5..ceddf41 100755 --- a/build.sh +++ b/build.sh @@ -15,7 +15,7 @@ echo "Building Ubuntu Server dev image for $version $codename..." # TODO verify this file # TODO deal with checking for updates to this file, somehow filename=ubuntu-$version-server-cloudimg-amd64-root.tar.xz -wget --no-clobber https://cloud-images.ubuntu.com/releases/$version/release/$filename +wget --timestamping https://cloud-images.ubuntu.com/releases/$version/release/$filename if ! [ $(id -u) = 0 ]; then # Need to be actual root to `mknod` things in /dev.