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:
Tobin C. Harding 2024-06-27 08:49:10 +10:00
parent 554a5eb40c
commit 31a2324bfd
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 1 additions and 1 deletions

View File

@ -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