summaryrefslogtreecommitdiff
path: root/testing/scripts/function.sh
diff options
context:
space:
mode:
authorYves-Alexis Perez <corsac@debian.org>2015-10-22 11:43:58 +0200
committerYves-Alexis Perez <corsac@debian.org>2015-10-22 11:43:58 +0200
commit5dca9ea0e2931f0e2a056c7964d311bcc30a01b8 (patch)
tree037f1ec5bb860846938ddcf29771c24e9c529be0 /testing/scripts/function.sh
parentb238cf34df3fe4476ae6b7012e7cb3e9769d4d51 (diff)
downloadvyos-strongswan-5dca9ea0e2931f0e2a056c7964d311bcc30a01b8.tar.gz
vyos-strongswan-5dca9ea0e2931f0e2a056c7964d311bcc30a01b8.zip
Imported Upstream version 5.3.3
Diffstat (limited to 'testing/scripts/function.sh')
-rwxr-xr-xtesting/scripts/function.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/scripts/function.sh b/testing/scripts/function.sh
index 2dd465c85..bab2f7422 100755
--- a/testing/scripts/function.sh
+++ b/testing/scripts/function.sh
@@ -163,7 +163,7 @@ running_any()
command -v virsh >/dev/null || return 1
for host in $*
do
- virsh list --name | grep "^$host$" >/dev/null && return 0
+ virsh list --name 2>/dev/null | grep "^$host$" >/dev/null && return 0
done
return 1
}