]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
verify-release: update to avoid shellcheck warning SC2034
authorViktor Szakats <commit@vsz.me>
Mon, 10 Nov 2025 14:08:19 +0000 (15:08 +0100)
committerViktor Szakats <commit@vsz.me>
Mon, 10 Nov 2025 15:06:48 +0000 (16:06 +0100)
```
SC2034: dl appears unused
```

Also to shorten the code.

Closes #19449

scripts/verify-release

index 2f7a0bf89fea5f6a87ee67440904b5c2a7aa17d8..b24d9b370d5af6c12c6ddaf5a64905114e06bb74 100755 (executable)
@@ -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"