open-vault/scripts/website_push.sh
2015-07-21 20:06:54 -06:00

13 lines
358 B
Bash
Executable file

#!/usr/bin/env bash
# Get the parent directory of where this script is.
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
# Change into that directory
cd $DIR
# Push the subtree (force)
git push heroku `git subtree split --prefix website master`:master --force