forked from pool/openscap
Marcus Meissner
c36700dc75
fix bashism in oscap-scan.cron script OBS-URL: https://build.opensuse.org/request/show/263389 OBS-URL: https://build.opensuse.org/package/show/security/openscap?expand=0&rev=115
13 lines
569 B
Diff
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
|