Created
May 5, 2018 06:50
-
-
Save mozbugbox/5d6234c3815dee869f2f6c4c0b019af0 to your computer and use it in GitHub Desktop.
Update showmet git master into "showmet-master/" directory
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/sh | |
# Update showmet git master into "showmet-master/" directory | |
OUTPUT_DIR="showmet-master" | |
URL="https://github.com/mozbugbox/showmet/archive/master.zip" | |
OUTPUT="showmet-master.zip" | |
wget -O "${OUTPUT}" "${URL}" | |
if [ $? -ne 0 ]; then | |
echo "**ERROR** Download Failed..." | |
exit | |
fi | |
TODAY=$(date -I) | |
unzip -j -u -d "${OUTPUT_DIR}" "${OUTPUT}" "showmet-master/*" | |
touch "showmet-master/GIT-${TODAY}.txt" | |
rm ${OUTPUT} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment