From fd0e229054408e646ae616fc053a8cf14ddfd8c8 Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Sun, 16 Oct 2011 17:32:30 +0530 Subject: [PATCH] some more bashisms fixed... --- hooks/common/gl-pre-git.hub-sample | 2 +- hooks/common/post-receive.mirrorpush | 2 +- hooks/common/update.secondary.sample | 2 +- src/gl-mirror-push | 2 +- src/gl-setup | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) 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`