Skip to content

Instantly share code, notes, and snippets.

View helen's full-sized avatar

Helen Hou-Sandi helen

View GitHub Profile
#!/bin/bash
# args
MSG=${1-'deploy from git'}
BRANCH=${2-'trunk'}
# paths
SRC_DIR=$(git rev-parse --show-toplevel)
DIR_NAME=$(basename $SRC_DIR)
DEST_DIR=~/Sites/wp-plugins/$DIR_NAME/$BRANCH