[X2Go-Commits] [maintenancescripts] 01/01: killstalevms.bash: use array for passing arguments to dialog.

git-admin at x2go.org git-admin at x2go.org
Thu Feb 12 02:00:04 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 2300fc8967820f17df64855569a917c03356616c
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Thu Feb 12 01:59:59 2015 +0100

    killstalevms.bash: use array for passing arguments to dialog.
---
 killstalevms.bash |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/killstalevms.bash b/killstalevms.bash
index 7c25ccf..84bae4e 100644
--- a/killstalevms.bash
+++ b/killstalevms.bash
@@ -41,10 +41,10 @@ for ((i = 0; i < ${#BUILDER_LIST[@]}; ++i)); do
   echo
 done
 
-DIALOGMENU=""
+typseset -a DIALOGMENU
 
 for ((i = 0; i < ${#BUILDER_LIST[@]}; ++i)); do
-  DIALOGMENU="${DIALOGMENU} \"$i\" \"${VM_LIST[$i]}: ${COMPONENT_LIST[$i]} (${VERSION_LIST[$i]}) for ${BRANCH_LIST[$i]}\""
+  DIALOGMENU[$i]+=("$i" "${VM_LIST[$i]}: ${COMPONENT_LIST[$i]} (${VERSION_LIST[$i]}) for ${BRANCH_LIST[$i]}")
 done
 
-dialog --menu "Select VM to kill" 0 0 10 ${DIALOGMENU}
+dialog --menu "Select VM to kill" 0 0 10 "${DIALOGMENU[@]}"

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


More information about the x2go-commits mailing list