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, 20 Jun 2016 12:30:19 +0000 (08:30 -0400)
commit960e513f430170bb58d59dcb26951f879a9baa7b
tree83001b553edf28d829030d9725bf1eda063f1615
parentd3908f46427a9126742a70967cf787edfd37ab43
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