Add mnt path just if custom payloads are set

This commit is contained in:
Jan Stárek
2019-10-09 22:04:25 +02:00
parent 11f361f4a6
commit 0f17c05216

5
run.sh
View File

@@ -38,7 +38,10 @@ if [ "$container" = "true" ]; then
echo "Founded mounted Docker directory, you can find WFuzz artifacts in your working directory."
WFUZZ_CONFIG="./mnt/$WFUZZ_CONFIG"
OPENAPI_DOCUMENTATION="./mnt/$OPENAPI_DOCUMENTATION"
CUSTOM_PAYLOADS_FILE="./mnt/$CUSTOM_PAYLOADS_FILE"
if [ ! -z "$CUSTOM_PAYLOADS_FILE" ]; then
CUSTOM_PAYLOADS_FILE="./mnt/$CUSTOM_PAYLOADS_FILE"
fi
FUZZER_LOG="./mnt/$FUZZER_LOG"
JUNIT_TEST_REPORT="./mnt/$JUNIT_TEST_REPORT_FILENAME"