Skip to content

Instantly share code, notes, and snippets.

@sidewinder040
Last active August 7, 2020 17:10
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sidewinder040/c5be4e00a6c3b1d2814739c925507c31 to your computer and use it in GitHub Desktop.
Save sidewinder040/c5be4e00a6c3b1d2814739c925507c31 to your computer and use it in GitHub Desktop.
Daily ISO Updater for Ubuntu Desktop and Derivatives
#! /bin/bash
# M. Crouch 09/03/2020 - Inspiration by Popey Youtube channel
# Command Arg: Date string eg. 20200309
# Refer to http://iso.qa.ubuntu.com/qatracker/milestones/408/builds for date string
# Check for argument
if [ "$1" == "" ]
then
echo "You must provide the date of the image."
echo "I.e <20200309>"
echo "Go to http://iso.qa.ubuntu.com/qatracker/milestones/408/builds"
echo "for lasted build data."
exit 1 # Error
fi
echo "Updating Ubuntu..."
zsync http://cdimage.ubuntu.com/daily-live/"$1"/focal-desktop-amd64.iso.zsync
echo
echo "Updating Mate..."
# zsync -o switch to change name of output file to avoid name collision
zsync http://cdimage.ubuntu.com/ubuntu-mate/daily-live/"$1"/focal-desktop-amd64.iso.zsync \
-o mate-focal-desktop-amd64.iso
echo
echo "Updating Kubuntu..."
zsync http://cdimage.ubuntu.com/kubuntu/daily-live/"$1"/focal-desktop-amd64.iso.zsync \
-o kubuntu-focal-desktop-amd64.iso
echo "Done"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment