libraries/libvirt: (Really) properly initialize $count in rc.libvirt

This fixes commit e4dec7aaf7

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Andrzej Telszewski 2018-03-15 01:59:46 -05:00 committed by Willy Sudiarto Raharjo
parent 47fcfad833
commit 38dfe92a5a
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ guests_managedsave() {
echo -n "Waiting for managedsave to finish on all guests..." echo -n "Waiting for managedsave to finish on all guests..."
count = 0 count=0
while [ $(/usr/sbin/virsh list --name | grep -v ^$ | wc -l) -gt "0" ]; do while [ $(/usr/sbin/virsh list --name | grep -v ^$ | wc -l) -gt "0" ]; do
if [ "$count" -ge "$TIMEOUT" ];then if [ "$count" -ge "$TIMEOUT" ];then