Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

some more bashisms fixed...

  • Loading branch information...
commit fd0e229054408e646ae616fc053a8cf14ddfd8c8 1 parent 36dfb85
@sitaramc authored
View
2  hooks/common/gl-pre-git.hub-sample
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# sample pre-git hook to print pending hub requests
View
2  hooks/common/post-receive.mirrorpush
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# gitolite mirroring
View
2  hooks/common/update.secondary.sample
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# driver script to run multiple update "hooklets". Each "hooklet" performs a
# specific (possibly site-local) check, and they *all* have to succeed for the
View
2  src/gl-mirror-push
@@ -9,7 +9,7 @@
# if list of slaves not given, get it from '...slaves' config
die() { echo gl-mirror-push${hn:+ on $hn}: "$@" >&2; exit 1; }
-get_rc_val() { ${0%/*}/gl-query-rc $1; }
+get_rc_val() { `dirname $0`/gl-query-rc $1; }
# ----------
View
2  src/gl-setup
@@ -21,7 +21,7 @@ GL_PACKAGE_CONF=/tmp/share/gitolite/conf
die() { echo "$@"; exit 1; } >&2
get_rc_val() {
- ${0%/*}/gl-query-rc $1
+ `dirname $0`/gl-query-rc $1
}
TEMPDIR=`mktemp -d -t tmp.XXXXXXXXXX`
Please sign in to comment.
Something went wrong with that request. Please try again.