From 0f17c052163dbda90999dad8688c2dc5a64a9abc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20St=C3=A1rek?= Date: Wed, 9 Oct 2019 22:04:25 +0200 Subject: [PATCH] Add mnt path just if custom payloads are set --- run.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index ed1b91a..f73ab7f 100644 --- a/run.sh +++ b/run.sh @@ -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"