Last active
August 8, 2021 14:29
-
-
Save DennisLfromGA/464ce5ff97768c95a98bc11dadf66b84 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ensured directory $location exists.