[X2Go-Commits] [maintenancescripts] 01/01: killstalevms.bash: actually regenerate list, too.

git-admin at x2go.org git-admin at x2go.org
Thu Feb 12 03:05:35 CET 2015


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

x2go pushed a commit to branch master
in repository maintenancescripts.

commit e563813b20fa278eadf849c53ed54d7ebf5da39f
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Thu Feb 12 03:05:24 2015 +0100

    killstalevms.bash: actually regenerate list, too.
---
 killstalevms.bash |   11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/killstalevms.bash b/killstalevms.bash
index c2ead48..fca0985 100644
--- a/killstalevms.bash
+++ b/killstalevms.bash
@@ -41,14 +41,13 @@ for ((i = 0; i < ${#BUILDER_LIST[@]}; ++i)); do
   echo
 done
 
-typeset -a DIALOGMENU
-
-for ((i = 0; i < ${#BUILDER_LIST[@]}; ++i)); do
-  DIALOGMENU+=("$i" "${VM_LIST[$i]}: ${COMPONENT_LIST[$i]} (${VERSION_LIST[$i]}) for ${BRANCH_LIST[$i]}")
-done
-
 RESULT="0"
 while [ "${RESULT}" -eq "0" ]; do
+  typeset -a DIALOGMENU
+  for ((i = 0; i < ${#BUILDER_LIST[@]}; ++i)); do
+    DIALOGMENU+=("$i" "${VM_LIST[$i]}: ${COMPONENT_LIST[$i]} (${VERSION_LIST[$i]}) for ${BRANCH_LIST[$i]}")
+  done
+
   MOREINFO=$(dialog --menu "Select VM to kill" 0 0 10 "${DIALOGMENU[@]}" 2>&1 >/dev/tty)
   RESULT="$?"
 

--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/maintenancescripts.git


More information about the x2go-commits mailing list