]> git.donarmstrong.com Git - bin.git/commitdiff
it needs to be GITPATH, not PATH
authorDon Armstrong <don@donarmstrong.com>
Mon, 12 May 2014 18:04:57 +0000 (11:04 -0700)
committerDon Armstrong <don@donarmstrong.com>
Mon, 12 May 2014 18:04:57 +0000 (11:04 -0700)
add_kgb_project

index d2bccbec47a934d40dffde1c1c6bef1fdcf706ef..0b79922be12ed341c9a6609e2a13ff795821a66e 100755 (executable)
@@ -1,17 +1,19 @@
 #!/bin/bash
 
+set -e
+
 PASSWORD=$(pwgen -s)
 
 PROJECT=${1%%.git}
 
-PATH="$(pwd)/$1"
+GITPATH="$(pwd)/$1"
 
-cat << EOF > "$PATH/hooks/post-receive"
+cat << EOF > "$GITPATH/hooks/post-receive"
 #!/bin/sh
-kgb-client --git-reflog - --conf $PATH/hooks/kgb.conf
+kgb-client --git-reflog - --conf $GITPATH/hooks/kgb.conf
 EOF
 
-cat << EOF > "$PATH/hooks/kgb.conf"
+cat << EOF > "$GITPATH/hooks/kgb.conf"
 repo-id: $PROJECT
 password: $PASSWORD
 servers: