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>
Mon, 31 Oct 2016 10:14:50 +0000 (06:14 -0400)
commit468ae304e6a02bd433c3f282fab9ab0a2f468269
tree176eeb05ef0ae0ad025424ffb5c909fb33957ba6
parentec30d9453c22e0464f47fddc686a4191148bd9fb
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.

(cherry picked from commit a68e9c005933a2d8d0f3264bdb68161263cd3933)
virt-what.in