[X2Go-Commits] [maintenancescripts] 01/01: git/hooks/common.sh: use lower case typeset attribute if using bash anyway.

git-admin at x2go.org git-admin at x2go.org
Wed Apr 1 09:14:20 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 510e874ca9ad7e7eb49aff070aa73d9e6d594afc
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Wed Apr 1 09:14:13 2015 +0200

    git/hooks/common.sh: use lower case typeset attribute if using bash anyway.
---
 git/hooks/common.sh |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/git/hooks/common.sh b/git/hooks/common.sh
index 6ff98d6..ca325db 100755
--- a/git/hooks/common.sh
+++ b/git/hooks/common.sh
@@ -17,10 +17,10 @@ SHORT_GIT_REPO_NAME="${GIT_REPO_NAME%.git}"
 GIT_DIR="$(pwd)"
 
 function make_boolean () {
-  typeset OPTION="${1}"
+  typeset -l OPTION="${1}"
 
   case "${OPTION}" in
-    ("0"|"no"|""|"No"|"nO"|"NO"|"false"|"FALSE") OPTION="0";;
+    ("0"|"no"|"false"|"") OPTION="0";;
     (*) OPTION="1";;
   esac
 

--
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