[Secure-testing-commits] r59009 - bin
Salvatore Bonaccorso
carnil at moszumanska.debian.org
Fri Dec 29 06:46:46 UTC 2017
Author: carnil
Date: 2017-12-29 06:46:46 +0000 (Fri, 29 Dec 2017)
New Revision: 59009
Modified:
bin/update
Log:
bin/update: Run commands from BASEDIR where update script was called
Reasoning: The script is used for the automatic updates of the CVE list.
This allows to call the script in the sectracker controlled path but
working on the CVE list in a workdirectory.
Modified: bin/update
===================================================================
--- bin/update 2017-12-28 22:12:38 UTC (rev 59008)
+++ bin/update 2017-12-29 06:46:46 UTC (rev 59009)
@@ -1,6 +1,9 @@
#!/bin/sh
set -e
+SCRIPT=$(readlink -f "$0")
+BASEDIR=$(dirname "$SCRIPT")
+
if [ ! -d CVE ]; then
echo "run in data subdirectory" >&2
exit 1
@@ -15,5 +18,5 @@
# capath=/etc/ssl/ca-global
curl -s -o allitems.html.gz https://cve.mitre.org/data/downloads/allitems.html.gz
gunzip allitems.html.gz
-../../bin/updatelist allitems.html ../DSA/list ../DTSA/list ../DLA/list list > list.new
+$BASEDIR/updatelist allitems.html ../DSA/list ../DTSA/list ../DLA/list list > list.new
mv -f list.new list
More information about the Secure-testing-commits
mailing list