Created
September 12, 2014 19:14
-
-
Save colindean/efa03ccc6c2eb4a0b91f to your computer and use it in GitHub Desktop.
Downloads the latest version of the Scala Koans and puts them into scala-koans in the current 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/bash | |
TARGET_DIR="`pwd`/scala-koans" | |
ZIP_FILE=koans.zip | |
wget https://bitbucket.org/dmarsh/scalakoansexercises/get/tip.zip -O "${ZIP_FILE}" | |
unzip -q "${ZIP_FILE}" | |
mkdir -p "${TARGET_DIR}" | |
cp -r *scalakoansexercises*/* "${TARGET_DIR}/" | |
rm -rf *scalakoansexercises* "${ZIP_FILE}" | |
echo "Scala Koans are available in ${TARGET_DIR}." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment