Skip to content

Instantly share code, notes, and snippets.

Avatar
👑
Getting it done

Helen Hou-Sandi helen

👑
Getting it done
View GitHub Profile
View plugin-deploy.sh
#!/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