diff options
-rwxr-xr-x | qemu | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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(){ |