Skip to content

Commit

Permalink
Only build apps that have already been created (plushu/plushu-apps#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartpb committed Sep 10, 2014
1 parent 1eb6e79 commit 27fab0d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hooks/git-update-hook
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ set -eo pipefail; [[ -n "$PLUSHU_TRACE" ]] && set -x

app=$PLUSHU_REPO_NAME

# If the master branch is being updated
if [[ "$1" == "refs/heads/master" ]]; then
# If there's an app for this repo, and the master branch is being updated
if [[ -d "$PLUSHU_APPS_DIR/$app" && "$1" == "refs/heads/master" ]]; then

# Source any special configuration for this app
if [[ -f "$PLUSHU_APPS_DIR/$app/receive.rc" ]]; then
source "$PLUSHU_APPS_DIR/$app/receive.rc"

Expand Down

0 comments on commit 27fab0d

Please sign in to comment.