Skip to content

Instantly share code, notes, and snippets.

@colindean
Created September 12, 2014 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colindean/efa03ccc6c2eb4a0b91f to your computer and use it in GitHub Desktop.
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.
#!/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