summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libvirt-cleanup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvirt-cleanup.sh b/libvirt-cleanup.sh
index 5166f2b..9283dc8 100644
--- a/libvirt-cleanup.sh
+++ b/libvirt-cleanup.sh
@@ -11,7 +11,7 @@ for domain in $domains; do
done
for network in $networks; do
- if virsh net-list --name | grep -q $domain; then
+ if virsh net-list --name | grep -q $network; then
virsh net-destroy $network
fi
virsh net-undefine $network