verify-release: update to avoid shellcheck warning SC2034

```
SC2034: dl appears unused
```

Also to shorten the code.

Closes #19449
This commit is contained in:
Viktor Szakats
2025-11-10 15:08:19 +01:00
parent 77be4a7ab2
commit a8e46c5ab1

View File

@@ -40,12 +40,7 @@ if [ -z "$tarball" ]; then
exit
fi
i="0"
# shellcheck disable=SC2034
for dl in curl-*; do
i=$((i + 1))
done
i="$(find . -maxdepth 1 -type d -name 'curl-*' | wc -l)"
if test "$i" -gt 1; then
echo "multiple curl-* entries found, disambiguate please"