[X2Go-Commits] [maintenancescripts] 01/02: git/hooks/common.sh: use $BASH_SOURCE[0] instead of just $BASH_SOURCE.

git-admin at x2go.org git-admin at x2go.org
Sat Sep 29 04:07:08 CEST 2018


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository maintenancescripts.

commit d357af108a7d5d7b1abf50c7f188b7f02636cd9e
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Sat Sep 29 04:02:50 2018 +0200

    git/hooks/common.sh: use $BASH_SOURCE[0] instead of just $BASH_SOURCE.
---
 git/hooks/common.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/git/hooks/common.sh b/git/hooks/common.sh
index 1e6b279..00d3f10 100755
--- a/git/hooks/common.sh
+++ b/git/hooks/common.sh
@@ -2,7 +2,7 @@
 
 umask 002
 
-OUTSIDE_REPO="$(dirname "$(readlink -ne "${BASH_SOURCE}")")"
+OUTSIDE_REPO="$(dirname "$(readlink -ne "${BASH_SOURCE[0]}")")"
 
 if [ "$(git rev-parse --is-bare-repository)" = "true" ]; then
   GIT_REPO_NAME="$(basename "${PWD}")"

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/maintenancescripts.git


More information about the x2go-commits mailing list