Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Aug 28, 2017
1 parent c16d86b commit 08b378e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Build/SimpleXML.pm
Expand Up @@ -39,8 +39,7 @@ sub parse {
$xml = substr($xml, length($1));
}
if (substr($xml, 0, 4) eq '<!--') {
die("bad xml, missing end of comment") unless $xml =~ /.*?-->/s;
$xml =~ s/.*?-->//s;
die("bad xml, missing end of comment\n") unless $xml =~ s/.*?-->//s;
next;
}
die("bad xml\n") unless $xml =~ /(.*?\>)/s;
Expand Down
2 changes: 1 addition & 1 deletion build-vm-kvm
Expand Up @@ -22,7 +22,7 @@
################################################################

kvm_bin=/usr/bin/qemu-kvm
! [ -x $kvm_bin ] && [ -x /usr/bin/kvm ] && kvm_bin=/usr/bin/kvm
test ! -x $kvm_bin -a -x /usr/bin/kvm && kvm_bin=/usr/bin/kvm
kvm_console=ttyS0

# assume virtio support by default
Expand Down

0 comments on commit 08b378e

Please sign in to comment.