From 27fab0d34710d963681bb67234c9b3ef9630b4d6 Mon Sep 17 00:00:00 2001 From: "Stuart P. Bentley" Date: Wed, 10 Sep 2014 02:17:26 -0700 Subject: [PATCH] Only build apps that have already been created (plushu/plushu-apps#10) --- hooks/git-update-hook | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hooks/git-update-hook b/hooks/git-update-hook index 41779cf..2428089 100755 --- a/hooks/git-update-hook +++ b/hooks/git-update-hook @@ -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"