mirror of
https://github.com/curl/curl.git
synced 2026-01-18 17:21:26 +01:00
verify-release: update to avoid shellcheck warning SC2034
``` SC2034: dl appears unused ``` Also to shorten the code. Closes #19449
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user