#!/bin/sh DEPLOYURL=git@heroku.com:quod-erat.git DEPLOYDIR=quod-erat.git if [ -z "$1" ]; then echo "Usage: $o " exit 1 fi if [ ! -d "$DEPLOYDIR" ]; then git clone "$DEPLOYURL" "$DEPLOYDIR" fi (cd "$DEPLOYDIR" && git pull && rm -rf * && cp -r ../build/* . && git add . && git commit -a -m "$1" && git push)