From 7bc44e77d08ec2b3e3f209b2d6d1941b4d1f6e2d Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 1 Mar 2026 06:54:06 -0800 Subject: [PATCH] shellcheck --- test/fuzz-libghostty/corpus/sanitize-filenames.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/fuzz-libghostty/corpus/sanitize-filenames.sh b/test/fuzz-libghostty/corpus/sanitize-filenames.sh index bd4368435..f54d9428e 100755 --- a/test/fuzz-libghostty/corpus/sanitize-filenames.sh +++ b/test/fuzz-libghostty/corpus/sanitize-filenames.sh @@ -7,9 +7,13 @@ cd "$(dirname "$0")" || exit 1 -dirs="${@:-vt-parser-cmin vt-parser-min}" +if [ $# -gt 0 ]; then + set -- "$@" +else + set -- vt-parser-cmin vt-parser-min +fi -for dir in $dirs; do +for dir in "$@"; do [ -d "$dir" ] || continue for f in "$dir"/*; do [ -f "$f" ] || continue