SHA256
1
0
forked from pool/openscap
openscap/openscap-1.1.0-fix-bashisms.patch

13 lines
569 B
Diff

diff -Ndur openscap-1.1.0/docs/oscap-scan.cron openscap-1.1.0-fix-bashisms/docs/oscap-scan.cron
--- openscap-1.1.0/docs/oscap-scan.cron 2011-08-17 15:55:37.000000000 +0300
+++ openscap-1.1.0-fix-bashisms/docs/oscap-scan.cron 2014-11-29 03:09:36.518411860 +0200
@@ -7,7 +7,7 @@
#OPTIONS="oval eval --report /var/log/oscap-scan.html.log --results /var/log/oscap-scan.xml.log /usr/share/openscap/scap-fedora14-oval.xml"
PROG="/usr/bin/oscap"
-if [ x"$OPTIONS" == "x" ]
+if [ -z "$OPTIONS" ]
then
logger "OpenSCAP security scan: NOT CONFIGURED. (Cron job)"
exit 0