[X2Go-Commits] [maintenancescripts] 01/01: git/hooks/common.sh: make semantically function-local variables actually function-local.
git-admin at x2go.org
git-admin at x2go.org
Wed Apr 1 09:09:48 CEST 2015
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository maintenancescripts.
commit 4a26abc56baa4bfce3089d1cff674a43b399991d
Author: Mihai Moldovan <ionic at ionic.de>
Date: Wed Apr 1 09:09:36 2015 +0200
git/hooks/common.sh: make semantically function-local variables actually function-local.
---
git/hooks/common.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/git/hooks/common.sh b/git/hooks/common.sh
index 6ddcc61..6ff98d6 100755
--- a/git/hooks/common.sh
+++ b/git/hooks/common.sh
@@ -17,7 +17,7 @@ SHORT_GIT_REPO_NAME="${GIT_REPO_NAME%.git}"
GIT_DIR="$(pwd)"
function make_boolean () {
- OPTION="${1}"
+ typeset OPTION="${1}"
case "${OPTION}" in
("0"|"no"|""|"No"|"nO"|"NO"|"false"|"FALSE") OPTION="0";;
@@ -63,8 +63,8 @@ function echowarn () {
}
function is_text_file () {
- rev="${1}"
- file="${2}"
+ typeset rev="${1}"
+ typeset file="${2}"
info
[ -z "$(git show --stat --pretty="format:" "${rev}" -- "${file}" | grep "${file} *| Bin.*bytes"'$')" ]
}
--
Alioth's /srv/git/code.x2go.org/maintenancescripts.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/maintenancescripts.git
More information about the x2go-commits
mailing list