diff options
author | Artturin <Artturin@artturin.com> | 2023-07-20 06:49:38 +0300 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2023-07-21 21:57:44 +0300 |
commit | 2ae18b7e10a064c1d2c4d4720d0a88f3d3d29296 (patch) | |
tree | 2bf4e00f690a50b981838189e39bfbbdb4cf2d5a /pkgs/build-support/setup-hooks | |
parent | 5093766f79b6d14a6a833de1b91f5557b4160232 (diff) |
setup-hooks/strip: Add -- before $cmd
Diffstat (limited to 'pkgs/build-support/setup-hooks')
-rw-r--r-- | pkgs/build-support/setup-hooks/strip.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/setup-hooks/strip.sh b/pkgs/build-support/setup-hooks/strip.sh index 032b816154a89..ed374dbb960f3 100644 --- a/pkgs/build-support/setup-hooks/strip.sh +++ b/pkgs/build-support/setup-hooks/strip.sh @@ -65,7 +65,7 @@ stripDirs() { striperr="$(mktemp 'striperr.XXXXXX')" # Do not strip lib/debug. This is a directory used by setup-hooks/separate-debug-info.sh. find $paths -type f -a '!' -path "$prefix/lib/debug/*" -print0 | - xargs -r -0 -n1 -P "$NIX_BUILD_CORES" $cmd $stripFlags 2>"$striperr" || exit_code=$? + xargs -r -0 -n1 -P "$NIX_BUILD_CORES" -- $cmd $stripFlags 2>"$striperr" || exit_code=$? # xargs exits with status code 123 if some but not all of the # processes fail. We don't care if some of the files couldn't # be stripped, so ignore specifically this code. |