mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 20:45:25 +00:00
19 lines
287 B
Bash
19 lines
287 B
Bash
|
|
#!/bin/bash
|
||
|
|
|
||
|
|
echo "::group::Build nuclei"
|
||
|
|
rm nuclei 2>/dev/null
|
||
|
|
cd ../v2/cmd/nuclei
|
||
|
|
go build .
|
||
|
|
mv nuclei ../../../integration_tests/nuclei
|
||
|
|
echo "::endgroup::"
|
||
|
|
cd ../../../integration_tests
|
||
|
|
pwd
|
||
|
|
./integration-test -protocol $1 -template $2
|
||
|
|
|
||
|
|
if [ $? -eq 0 ]
|
||
|
|
then
|
||
|
|
exit 0
|
||
|
|
else
|
||
|
|
exit 1
|
||
|
|
fi
|