summaryrefslogtreecommitdiffstats
path: root/update_jdn.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-07-14 15:07:01 +0200
committerHolger Levsen <holger@layer-acht.org>2016-07-14 15:07:01 +0200
commit5772b48f5599c9bb629002a9f6b7c9db0b23c828 (patch)
tree7b9ff420eba2547a3b1c6a8445fae803ce2c295f /update_jdn.sh
parentb86e4738a0963bc625c70be10867d157db45d654 (diff)
downloadjenkins.debian.net-5772b48f5599c9bb629002a9f6b7c9db0b23c828.tar.xz
update_jdn: address variable correctly
Diffstat (limited to 'update_jdn.sh')
-rwxr-xr-xupdate_jdn.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/update_jdn.sh b/update_jdn.sh
index 957a39cb..2bd334fb 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -79,7 +79,7 @@ u_shell['mattia']='/bin/zsh'
# get the users out of the user_host_groups array's index
users=$(for i in ${!user_host_groups[@]}; do echo ${i%,*} ; done | sort -u)
-$UP2DATE || for user in $users ; do
+$UP2DATE || for user in ${users}; do
# -v is a bashism to check for set variables, used here to see if this user is active on this host
[ -v user_host_groups["$user","$HOSTNAME"] -o -v user_host_groups["$user",'*'] ] || continue