scripts: use end-of-options marker in find -exec commands

Closes #19450
This commit is contained in:
Viktor Szakats 2025-11-10 16:49:11 +01:00
parent a8e46c5ab1
commit 6aab1dc263
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
8 changed files with 13 additions and 13 deletions

View file

@ -70,7 +70,7 @@ fi
# As a precaution, remove all *.dist files that may be lying around, to reduce
# the risk of old leftovers getting shipped.
echo "removing all old *.dist files"
find . -name "*.dist" -exec rm {} \;
find . -name "*.dist" -exec rm -- {} \;
numeric="$(printf "%02x%02x%02x\n" "$major" "$minor" "$patch")"
@ -184,7 +184,7 @@ retar() {
mkdir "$tempdir"
cd "$tempdir"
gzip -dc "../$targz" | tar -xf -
find curl-* -depth -exec touch -c -t "$filestamp" '{}' +
find curl-* -depth -exec touch -c -t "$filestamp" -- '{}' +
tar --create --format=ustar --owner=0 --group=0 --numeric-owner --sort=name curl-* | gzip --best --no-name > out.tar.gz
mv out.tar.gz ../
cd ..