From d53d5656fd840dd4ca3fb9eb7fb191c2efe03252 Mon Sep 17 00:00:00 2001 From: Marcin Szydelski Date: Jun 17 2019 10:07:23 +0000 Subject: check for the vulnerabilities directory existence not every architecture reports those and grep was throwing an error --- diff --git a/runtests.sh b/runtests.sh index d76e543..31079cd 100755 --- a/runtests.sh +++ b/runtests.sh @@ -200,8 +200,10 @@ if [ -f /usr/bin/pesign ]; then /usr/bin/pesign -i /boot/vmlinuz-$kver -S | grep "common name" fi -echo "Vulnerability status:" -grep . /sys/devices/system/cpu/vulnerabilities/* +if [ -d /sys/devices/system/cpu/vulnerabilities/ ]; then + echo "Vulnerability status:" + grep . /sys/devices/system/cpu/vulnerabilities/* +fi if [ "$cleanrun" == "FAIL" ]; then exit 1