diff options
author | Holger Levsen <holger@layer-acht.org> | 2017-06-21 12:23:08 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2017-06-21 12:23:08 +0200 |
commit | 7923f7051db7b28b1469d7ab0ed13f8f58c12264 (patch) | |
tree | 26250dffc53d8b7d2432aa471176d01064e19263 /update_jdn.sh | |
parent | 572df80e300971135c06f948f00a33ea476123e3 (diff) | |
download | jenkins.debian.net-7923f7051db7b28b1469d7ab0ed13f8f58c12264.tar.xz |
reproducible Debian: avoid syntax error if string is empty
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'update_jdn.sh')
-rwxr-xr-x | update_jdn.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/update_jdn.sh b/update_jdn.sh index d2275ad0..ebf903c2 100755 --- a/update_jdn.sh +++ b/update_jdn.sh @@ -127,7 +127,7 @@ u_shell['jenkins-adm']='/bin/bash' # 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 && [ -z $(find authorized_keys -newer $0) ] ) || for user in ${users}; do +( $UP2DATE && [ -z "$(find authorized_keys -newer $0)" ] ) || 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 if [ ! -v user_host_groups["$user","$HOSTNAME"] ] && [ ! -v user_host_groups["$user",'*'] ] && [ ! -v user_host_groups["$user","$DPKG_ARCH"] ] ; then continue |