aboutsummaryrefslogtreecommitdiffstats
path: root/qemu
diff options
context:
space:
mode:
Diffstat (limited to 'qemu')
-rwxr-xr-xqemu5
1 files changed, 4 insertions, 1 deletions
diff --git a/qemu b/qemu
index b4272dd..9324f63 100755
--- a/qemu
+++ b/qemu
@@ -53,7 +53,10 @@ get_config(){
local ns='https://2e8.dk/libvirt-routed-subnet'
local query = "//*[local-name()='$tag' and namespace-uri()='$ns']"
fullxml="$(cat "$configfile")"
- routingxml="$(xpath "$query" "$fullxml")"
+ routingxml="$(xpath "$query" "$fullxml" || true)"
+ if [ -z "$routingxml" ] ; then
+ exit 0
+ fi
}
get_device(){