...
 
Commits (2)
......@@ -18,8 +18,6 @@ pkgsrc project.
* Clone this repo.
* Install python3.
* Build and install the required software. As root, run
./build+install
......
......@@ -16,16 +16,19 @@ REPORTPATH="${REPORTPATH:-report}"
#-----------------------------------------------------------------------
# we get a few more matches in lower case, so:
tr '[:upper:]' '[:lower:]' < "$1" | sort -u > /tmp/$(basename "$1")
# The database is hardcoded to live at $HOME/NVDS (derp),
# but we can subvert that :)
export HOME=$(realpath ..)
# Create the reports, in two formats.
# (1) html
cve-check-tool -u "$1" > "$REPORTPATH".html
cve-check-tool -t faux -u /tmp/$(basename "$1") > "$REPORTPATH".html
echo "Wrote $REPORTPATH.html"
# (2) csv
cve-check-tool -u -c "$1" | sort > "$REPORTPATH".csv
cve-check-tool -t faux -u -c "$1" | sort > "$REPORTPATH".csv
echo "Wrote $REPORTPATH.csv"
#-----------------------------------------------------------------------
......