[Qa-jenkins-scm] [jenkins.debian.net] 01/01: fix: local can only be used in a function

Holger Levsen holger at moszumanska.debian.org
Mon Nov 9 07:57:08 UTC 2015


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

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit d2f4bf3050f663b39b3241ccd39eed6390da9dac
Author: Holger Levsen <holger at layer-acht.org>
Date:   Mon Nov 9 08:57:00 2015 +0100

    fix: local can only be used in a function
---
 update_jdn.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/update_jdn.sh b/update_jdn.sh
index d2a51fc..972d704 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -36,11 +36,11 @@ for user in helmut holger mattia lunar ; do
 	fi
 	if ! getent passwd $user > /dev/null ; then
 		if [ "$user" = "mattia" ] ; then
-			local shell=/bin/zsh
+			usershell=/bin/zsh
 		else
-			local shell=/bin/bash
+			usershell=/bin/bash
 		fi
-		sudo adduser --gecos "" --shell "$shell" --disabled-password $user
+		sudo adduser --gecos "" --shell "$usershell" --disabled-password $user
 		if [ "$user" = "holger" ] ; then
 			sudo usermod -G jenkins,jenkins-adm,sudo,adm $user
 		elif [ "$user" != "lunar" ] ; then

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list