Skip to content

Commit

Permalink
Fix xargs cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Hartorn committed Sep 19, 2024
1 parent d3f3e0d commit 184da93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ RUN set -eux; \
| xargs -r dpkg-query --search \
| cut -d: -f1 \
| sort -u \
| xargs -I sh -c "apt-mark manual {} || echo OK" \
| xargs -I {} sh -c "apt-mark manual {} || echo OK" \
; \
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
rm -rf /var/lib/apt/lists/*; \
Expand Down
2 changes: 1 addition & 1 deletion python/generate_dockerfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function install_python() {
# This is to not remove static lib when using CUDA
# sed -i "s/ -o -name '\*\.a' / /" "${output_file}"

sed -i -e 's|xargs -r apt-mark manual \\|xargs -I sh -c "apt-mark manual {} \|\| echo 'OK'" \\|' "${output_file}"
sed -i -e 's|xargs -r apt-mark manual \\|xargs -I {} sh -c "apt-mark manual {} \|\| echo 'OK'" \\|' "${output_file}"

# | xargs -r apt-mark manual \
# | xargs -I sh -c "apt-mark manual {} || echo 'OK'" \
Expand Down

0 comments on commit 184da93

Please sign in to comment.