This is an automated email from the git hooks/post-receive script. x2go pushed a change to branch master in repository maintenancescripts. from 2be2a42 killstalevms.bash: also remove stuff out of BUILDER_LIST. new 6410180 killstalevms.bash: fix removing elements from arrays. The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Summary of changes: killstalevms.bash | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) -- Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/maintenancescripts.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository maintenancescripts. commit 6410180cec8149b17cf1d75ec0a33d80ea75f2d2 Author: Mihai Moldovan <ionic@ionic.de> Date: Thu Feb 12 03:29:04 2015 +0100 killstalevms.bash: fix removing elements from arrays. --- killstalevms.bash | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/killstalevms.bash b/killstalevms.bash index 526bb38..86f8ccd 100644 --- a/killstalevms.bash +++ b/killstalevms.bash @@ -59,14 +59,14 @@ while [ "${RESULT}" -eq "0" ]; do echo kill -9 "${VM_LIST[${MOREINFO}]}" # Remove current element from lists. - VM_LIST=("${VM_LIST[@]:${MOREINFO}}") - BUILDER_LIST=("${BUILDER_LIST[@]:${MOREINFO}}") - BRANCH_LIST=("${BRANCH_LIST[@]:${MOREINFO}}") - COMPONENT_LIST=("${COMPONENT_LIST[@]:${MOREINFO}}") - SYSTEM_LIST=("${SYSTEM_LIST[@]:${MOREINFO}}") - SYSTEM_VERSION_LIST=("${SYSTEM_VERSION_LIST[@]:${MOREINFO}}") - ARCH_LIST=("${ARCH_LIST_LIST[@]:${MOREINFO}}") - VERSION_LIST=("${VERSION_LIST[@]:${MOREINFO}}") + VM_LIST=("${VM_LIST[@]:0:${MOREINFO}}" "${VM_LIST[@]:${MOREINFO} + 1}") + BUILDER_LIST=("${BUILDER_LIST[@]:0:${MOREINFO}}" "${BUILDER_LIST[@]:${MOREINFO} + 1}") + BRANCH_LIST=("${BRANCH_LIST[@]:0:${MOREINFO}}" "${BRANCH_LIST[@]:${MOREINFO} + 1}") + COMPONENT_LIST=("${COMPONENT_LIST[@]:0:${MOREINFO}}" "${COMPONENT_LIST[@]:${MOREINFO} + 1}") + SYSTEM_LIST=("${SYSTEM_LIST[@]:0:${MOREINFO}}" "${SYSTEM_LIST[@]:${MOREINFO} + 1}") + SYSTEM_VERSION_LIST=("${SYSTEM_VERSION_LIST[@]:0:${MOREINFO}}" "${SYSTEM_VERSION_LIST[@]:${MOREINFO} + 1}") + ARCH_LIST=("${ARCH_LIST[@]:0:${MOREINFO}}" "${ARCH_LIST[@]:${MOREINFO} + 1}") + VERSION_LIST=("${VERSION_LIST[@]:0:${MOREINFO}}" "${VERSION_LIST[@]:${MOREINFO} + 1}") else # Continue at the menu. RESULT="0" -- Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/maintenancescripts.git