This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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; |