Skip to content

Instantly share code, notes, and snippets.

@DennisLfromGA
Last active August 8, 2021 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DennisLfromGA/464ce5ff97768c95a98bc11dadf66b84 to your computer and use it in GitHub Desktop.
Save DennisLfromGA/464ce5ff97768c95a98bc11dadf66b84 to your computer and use it in GitHub Desktop.
#!/bin/bash
conffile="recovery.conf"
location="${HOME}/Downloads/"
mkdir -p ${location}
echo "Getting a new ${conffile} file ..."
curl -s https://dl.google.com/dl/edgedl/chromeos/recovery/${conffile} -o /tmp/${conffile}
if [ -s ${location}/${conffile} ]; then
cp ${location}/${conffile} ${location}/${conffile}.old
fi
cp /tmp/${conffile} ${location}
exit 0
@DennisLfromGA
Copy link
Author

Ensured directory $location exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment