Fix fuzz script
Currently the `fuzz.sh` script fails with "unbound variable" if called without any arguments, this has gone undetected since we added `set -euox pipefail` because in CI we always call it with an argument. Use chatGPT to fix the bug. Fix: #2924
This commit is contained in:
parent
554a5eb40c
commit
31a2324bfd
|
@ -10,7 +10,7 @@ source "$REPO_DIR/fuzz/fuzz-util.sh"
|
||||||
# Check that input files are correct Windows file names
|
# Check that input files are correct Windows file names
|
||||||
checkWindowsFiles
|
checkWindowsFiles
|
||||||
|
|
||||||
if [ "$1" == "" ]; then
|
if [ -z "${1:-}" ]; then
|
||||||
targetFiles="$(listTargetFiles)"
|
targetFiles="$(listTargetFiles)"
|
||||||
else
|
else
|
||||||
targetFiles=fuzz_targets/"$1".rs
|
targetFiles=fuzz_targets/"$1".rs
|
||||||
|
|
Loading…
Reference in New Issue