]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
GHA/checksrc: fix `-z` position, also use `--output` with `xmllint`
authorViktor Szakats <commit@vsz.me>
Sat, 13 Dec 2025 11:35:36 +0000 (12:35 +0100)
committerViktor Szakats <commit@vsz.me>
Sat, 13 Dec 2025 19:50:33 +0000 (20:50 +0100)
Fixing:
```
fatal: option '-z' must come before non-option arguments
```
Ref: https://github.com/curl/curl/actions/runs/20183280533/job/57948203944#step:4:5

Follow-up to b5ea0736bbeeae717925d8eccbdb15057d8e88e9 #19946
Closes #19958

.github/workflows/checksrc.yml

index 3b33287d9413f081682056e9c89694cf8c2c34e9..717554e5fe5ec1733c796954571b037923c040bc 100644 (file)
@@ -135,7 +135,7 @@ jobs:
           persist-credentials: false
 
       - name: 'check'
-        run: git grep -i -l -E '^<\?xml' -z | xargs -0 -r xmllint >/dev/null
+        run: git grep -z -i -l -E '^<\?xml' | xargs -0 -r xmllint --output /dev/null
 
   miscchecks:
     name: 'misc checks'