mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 03:55:23 +00:00
* fix the run.sh in case of integration tests not to fail if there are no built artifacts before execution
18 lines
319 B
Bash
Executable File
18 lines
319 B
Bash
Executable File
#!/bin/bash
|
|
|
|
rm integration-test nuclei 2>/dev/null
|
|
cd ../v2/cmd/nuclei
|
|
go build
|
|
mv nuclei ../../../integration_tests/nuclei
|
|
cd ../integration-test
|
|
go build
|
|
mv integration-test ../../../integration_tests/integration-test
|
|
cd ../../../integration_tests
|
|
./integration-test
|
|
if [ $? -eq 0 ]
|
|
then
|
|
exit 0
|
|
else
|
|
exit 1
|
|
fi
|