Skip to content

Instantly share code, notes, and snippets.

@mozbugbox
Created May 5, 2018 06:50
Show Gist options
  • Save mozbugbox/5d6234c3815dee869f2f6c4c0b019af0 to your computer and use it in GitHub Desktop.
Save mozbugbox/5d6234c3815dee869f2f6c4c0b019af0 to your computer and use it in GitHub Desktop.
Update showmet git master into "showmet-master/" directory
#!/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