diff --git a/hooks/common/gl-pre-git.hub-sample b/hooks/common/gl-pre-git.hub-sample index 94474c2..6c02e9f 100644 --- a/hooks/common/gl-pre-git.hub-sample +++ b/hooks/common/gl-pre-git.hub-sample @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # sample pre-git hook to print pending hub requests diff --git a/hooks/common/post-receive.mirrorpush b/hooks/common/post-receive.mirrorpush index 6914f0e..f63abd2 100755 --- a/hooks/common/post-receive.mirrorpush +++ b/hooks/common/post-receive.mirrorpush @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # gitolite mirroring diff --git a/hooks/common/update.secondary.sample b/hooks/common/update.secondary.sample index c7d9f92..aabe7f0 100644 --- a/hooks/common/update.secondary.sample +++ b/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 diff --git a/src/gl-mirror-push b/src/gl-mirror-push index 1c6da4e..70514cb 100755 --- a/src/gl-mirror-push +++ b/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; } # ---------- diff --git a/src/gl-setup b/src/gl-setup index bc892ac..a18b60b 100755 --- a/src/gl-setup +++ b/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`