Created
August 29, 2018 09:28
-
-
Save gbougakov/f55928d94b01a1e879fb39713deebad5 to your computer and use it in GitHub Desktop.
Timer Cloner
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 | |
echo "[SCRIPT] Creating temporary clone directory" | |
tempdir=`mktemp -d` | |
echo "[SCRIPT] Cloning to $tempdir" | |
git clone https://github.com/gbougakov/lessontimer.git $tempdir | |
if [ ! -f $tempdir/index.html ]; then | |
echo "Clone failed :(" | |
exit | |
fi | |
echo "[SCRIPT] Moving files" | |
rm -rf ~/lessontimer | |
mv $tempdir ~/lessontimer | |
echo "[SCRIPT] Cleaning up" | |
rm -rf $tempdir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment