about summary refs log tree commit diff stats
path: root/tools/conf/srv/gitolite/hook-deployweb
diff options
context:
space:
mode:
Diffstat (limited to 'tools/conf/srv/gitolite/hook-deployweb')
-rwxr-xr-xtools/conf/srv/gitolite/hook-deployweb5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/conf/srv/gitolite/hook-deployweb b/tools/conf/srv/gitolite/hook-deployweb
index a311c00..1a32bd9 100755
--- a/tools/conf/srv/gitolite/hook-deployweb
+++ b/tools/conf/srv/gitolite/hook-deployweb
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 ######################################################################
 #
@@ -10,7 +10,7 @@ do
     BRANCH=$(git rev-parse --symbolic --abbrev-ref $refname)
     echo "Commit was for branch $BRANCH"
 
-    if [[ "$BRANCH" == "master" ]];then
+    if [ "$BRANCH" = "deployweb" ]; then
 
         # Get project name from current directory (without .git)
         PROJECT=$(basename "$PWD")
@@ -19,5 +19,4 @@ do
         echo "Project $PROJECT added to deploy list."
         echo $PWD > /srv/gitolite/deploy/$PROJECT
     fi
-
 done