Skip to content

Instantly share code, notes, and snippets.

@DennisLfromGA
Last active August 8, 2021 14:29
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
#!/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