diff --git a/python/Dockerfile b/python/Dockerfile index e6d2142..9d66b16 100644 --- a/python/Dockerfile +++ b/python/Dockerfile @@ -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/*; \ diff --git a/python/generate_dockerfile.sh b/python/generate_dockerfile.sh index 7e5b23b..e382d82 100755 --- a/python/generate_dockerfile.sh +++ b/python/generate_dockerfile.sh @@ -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'" \