mirror of
https://github.com/hohn/codeql-javascript-multiflow.git
synced 2025-12-16 12:03:03 +01:00
16 lines
318 B
Bash
Executable File
16 lines
318 B
Bash
Executable File
#!/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)'
|