mirror of
https://github.com/hohn/codeql-javascript-multiflow.git
synced 2025-12-16 12:03:03 +01:00
Add make-db script
This commit is contained in:
committed by
=Michael Hohn
parent
9565629463
commit
d02e26d6d2
15
cruft/make-db
Executable file
15
cruft/make-db
Executable file
@@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
cd ~/local/codeql-javascript-multiflow/
|
||||||
|
|
||||||
|
DB=./js-sqli-db-$(git rev-parse --short HEAD)
|
||||||
|
echo $DB
|
||||||
|
|
||||||
|
test -d "$DB" && rm -fR "$DB"
|
||||||
|
mkdir -p "$DB"
|
||||||
|
|
||||||
|
codeql database create --language=javascript -s . -j 8 -v $DB
|
||||||
|
|
||||||
|
# Check it
|
||||||
|
echo "The DB is in $DB"
|
||||||
|
echo "Content check:"
|
||||||
|
unzip -v $DB/src.zip |egrep '(add|sample)'
|
||||||
Reference in New Issue
Block a user