This is an automated email from the git hooks/post-receive script. x2go pushed a change to branch master in repository maintenancescripts. from fd7ae0d killstalevms.bash: use proper redirection when executing dialog. new 5a5411e killstalevms.bash: loop correctly and remove elements from menu once they are killed. 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 | 12 ++++++++++++ 1 file changed, 12 insertions(+) -- 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 5a5411e44ba5669863103205341681689df20a43 Author: Mihai Moldovan <ionic@ionic.de> Date: Thu Feb 12 03:03:41 2015 +0100 killstalevms.bash: loop correctly and remove elements from menu once they are killed. --- killstalevms.bash | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/killstalevms.bash b/killstalevms.bash index 1f5245a..c2ead48 100644 --- a/killstalevms.bash +++ b/killstalevms.bash @@ -58,6 +58,18 @@ while [ "${RESULT}" -eq "0" ]; do if [ "${RESULT}" -eq "0" ]; then echo kill -9 "${VM_LIST[${MOREINFO}]}" + + # Remove current element from lists. + VM_LIST=("${VM_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}}") + else + # Continue at the menu. + RESULT="0" fi fi done -- Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/maintenancescripts.git