Skip to content

Instantly share code, notes, and snippets.

View sj-dan's full-sized avatar

Dan sj-dan

View GitHub Profile
@sj-dan
sj-dan / crosflex_downloader.sh
Last active December 10, 2023 12:22
Script to fetch and download the latest version of the Chrome OS Flex image
#!/bin/bash
URLs=$(curl "https://dl.google.com/dl/edgedl/chromeos/recovery/cloudready_recovery2.json" \
-s --output - | \
grep "^.*\"url\".*$" | \
sed "s/.*\"url\": \"\(.*\)\".*$/\1/g")
printf "\nPick which channel to download your image from. Channel name is near the end of the URL.\n\n"
select URL in $URLs;