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