Skip to content

Instantly share code, notes, and snippets.

@n8henrie
Last active September 2, 2022 22:25
Show Gist options
  • Save n8henrie/2dffc6abf229985b933b41d33a195643 to your computer and use it in GitHub Desktop.
Save n8henrie/2dffc6abf229985b933b41d33a195643 to your computer and use it in GitHub Desktop.
*.img
*.img.xz
#!/usr/bin/env bash
set -Eeuf -o pipefail
shopt -s inherit_errexit
set -x
main() {
local img=2022-04-04-raspios-bullseye-arm64-lite.img
if [[ ! -f "${img}" ]]; then
wget "https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2022-04-07/${img}.xz"
xz --decompress "${img}.xz"
fi
}
main "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment