[X2Go-Commits] [maintenancescripts] 01/01: killstalevms.bash: try to fix arithmetic expression.
git-admin at x2go.org
git-admin at x2go.org
Wed Feb 11 23:32:06 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 e2157024727c204e6617547778f7c67e789b6dd0
Author: Mihai Moldovan <ionic at ionic.de>
Date: Wed Feb 11 23:32:01 2015 +0100
killstalevms.bash: try to fix arithmetic expression.
---
killstalevms.bash | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/killstalevms.bash b/killstalevms.bash
index b1761a5..48a67a1 100644
--- a/killstalevms.bash
+++ b/killstalevms.bash
@@ -8,7 +8,8 @@ typeset -i i
i=0
pgrep -f -u root '^kvm.*pbuilder.*qemu.*' | while read VM_PID; do
- VM_LIST[$((i++))]="${VM_PID}"
+ VM_LIST[$i]="${VM_PID}"
+ i=$((i++))
done
typeset -a BUILDER_LIST
--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/maintenancescripts.git
More information about the x2go-commits
mailing list