Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 18 lines (16 sloc) 461 Bytes
#!/bin/sh
if [ -z $1 ]; then
echo "Missing argument for git user!"
echo "Usage: update <git-user> <commit-id>"
exit -1
fi
if [ -z $2 ]; then
echo "Missing argument for commit id for initial state!"
echo "Usage: update <git-user> <commit-id>"
exit -1
fi
git reset --hard empty
git clean -fd
G8_DIR=src/main/g8
mkdir -p $G8_DIR
curl -L -u$1 https://github.com/typesafehub/training-scala-j/tarball/$2 | tar -C $G8_DIR -x --strip 1 --exclude verify.sh