]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
library-bundler: proper xargs usage
authorThomas Debesse <dev@illwieckz.net>
Sun, 28 Nov 2021 00:39:02 +0000 (01:39 +0100)
committerThomas Debesse <dev@illwieckz.net>
Sun, 28 Nov 2021 00:39:02 +0000 (01:39 +0100)
Prevent this warning:

xargs: warning: options --max-args and --replace/-I/-i are mutually exclusive, ignoring previous --max-args value

library-bundler

index b08b9c89c0e2b71cf7dbddb7c8ff89bcbbe5c0b1..54056c41fe527b803fc399d9ab42898931bcf1ee 100755 (executable)
@@ -39,7 +39,7 @@ Common::getPath () {
                if [ "${file_path}" = '-' ]
                then
                        tr '\n' '\0' \
-                       | xargs -0 -n1 -P1 -I{} \
+                       | xargs -0 -P1 -I{} \
                                cygpath --unix '{}'
                else
                        cygpath --unix "${file_path}"
@@ -448,7 +448,7 @@ Windows::listLibForManifest () {
                -name '*.dll' \
                -exec basename {} \; \
        | tr '\n' '\0' \
-       | xargs -0 -n1 -P1 -I{} \
+       | xargs -0 -P1 -I{} \
                printf '  <file name="{}"/>\n'
 }