virt-what.in: verify files exists before grepping them
authorAssaf Gordon <assafgordon@gmail.com>
Mon, 15 Sep 2014 19:15:19 +0000 (19:15 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 16 Sep 2014 17:57:54 +0000 (18:57 +0100)
commita68e9c005933a2d8d0f3264bdb68161263cd3933
tree90f2052d5b4059486b859846c15c790d380cfd9a
parente3e88af8847a4269fb275fd054fc36c5066d5d49
virt-what.in: verify files exists before grepping them

Don't grep linux-specific files (e.g. /proc/cpuinfo) unless they exist.
This avoids extraneous errors on BSD/Hurd systems which don't have these
files.
virt-what.in