Added directory check before removing it.
This commit is contained in:
parent
66cee22289
commit
5d682fa37c
@ -69,7 +69,6 @@ RUN set -ex; \
|
|||||||
gettext \
|
gettext \
|
||||||
zip \
|
zip \
|
||||||
; \
|
; \
|
||||||
rm -r /tmp/pear; \
|
|
||||||
\
|
\
|
||||||
# some misbehaving extensions end up outputting to stdout
|
# some misbehaving extensions end up outputting to stdout
|
||||||
out="$(php -r 'exit(0);')"; \
|
out="$(php -r 'exit(0);')"; \
|
||||||
@ -87,7 +86,7 @@ RUN set -ex; \
|
|||||||
apcu \
|
apcu \
|
||||||
memcached \
|
memcached \
|
||||||
; \
|
; \
|
||||||
rm -r /tmp/pear; \
|
[ -d /tmp/pear ] && rm -r /tmp/pear; \
|
||||||
\
|
\
|
||||||
# reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies
|
# reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies
|
||||||
apt-mark auto '.*' > /dev/null; \
|
apt-mark auto '.*' > /dev/null; \
|
||||||
|
@ -69,7 +69,6 @@ RUN set -ex; \
|
|||||||
gettext \
|
gettext \
|
||||||
zip \
|
zip \
|
||||||
; \
|
; \
|
||||||
rm -r /tmp/pear; \
|
|
||||||
\
|
\
|
||||||
# some misbehaving extensions end up outputting to stdout
|
# some misbehaving extensions end up outputting to stdout
|
||||||
out="$(php -r 'exit(0);')"; \
|
out="$(php -r 'exit(0);')"; \
|
||||||
@ -87,7 +86,7 @@ RUN set -ex; \
|
|||||||
apcu \
|
apcu \
|
||||||
memcached \
|
memcached \
|
||||||
; \
|
; \
|
||||||
rm -r /tmp/pear; \
|
[ -d /tmp/pear ] && rm -r /tmp/pear; \
|
||||||
\
|
\
|
||||||
# reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies
|
# reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies
|
||||||
apt-mark auto '.*' > /dev/null; \
|
apt-mark auto '.*' > /dev/null; \
|
||||||
|
@ -68,7 +68,6 @@ RUN set -ex; \
|
|||||||
gettext \
|
gettext \
|
||||||
zip \
|
zip \
|
||||||
; \
|
; \
|
||||||
rm -r /tmp/pear; \
|
|
||||||
\
|
\
|
||||||
# some misbehaving extensions end up outputting to stdout
|
# some misbehaving extensions end up outputting to stdout
|
||||||
out="$(php -r 'exit(0);')"; \
|
out="$(php -r 'exit(0);')"; \
|
||||||
@ -88,7 +87,7 @@ RUN set -ex; \
|
|||||||
memcached \
|
memcached \
|
||||||
xmlrpc \
|
xmlrpc \
|
||||||
; \
|
; \
|
||||||
rm -r /tmp/pear; \
|
[ -d /tmp/pear ] && rm -r /tmp/pear; \
|
||||||
\
|
\
|
||||||
# reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies
|
# reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies
|
||||||
apt-mark auto '.*' > /dev/null; \
|
apt-mark auto '.*' > /dev/null; \
|
||||||
|
@ -68,7 +68,6 @@ RUN set -ex; \
|
|||||||
gettext \
|
gettext \
|
||||||
zip \
|
zip \
|
||||||
; \
|
; \
|
||||||
rm -r /tmp/pear; \
|
|
||||||
\
|
\
|
||||||
# some misbehaving extensions end up outputting to stdout
|
# some misbehaving extensions end up outputting to stdout
|
||||||
out="$(php -r 'exit(0);')"; \
|
out="$(php -r 'exit(0);')"; \
|
||||||
@ -88,7 +87,7 @@ RUN set -ex; \
|
|||||||
memcached \
|
memcached \
|
||||||
xmlrpc \
|
xmlrpc \
|
||||||
; \
|
; \
|
||||||
rm -r /tmp/pear; \
|
[ -d /tmp/pear ] && rm -r /tmp/pear; \
|
||||||
\
|
\
|
||||||
# reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies
|
# reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies
|
||||||
apt-mark auto '.*' > /dev/null; \
|
apt-mark auto '.*' > /dev/null; \
|
||||||
|
@ -108,7 +108,6 @@ RUN set -ex; \
|
|||||||
gettext \
|
gettext \
|
||||||
zip \
|
zip \
|
||||||
; \
|
; \
|
||||||
rm -r /tmp/pear; \
|
|
||||||
\
|
\
|
||||||
# some misbehaving extensions end up outputting to stdout
|
# some misbehaving extensions end up outputting to stdout
|
||||||
out="$(php -r 'exit(0);')"; \
|
out="$(php -r 'exit(0);')"; \
|
||||||
@ -134,7 +133,7 @@ RUN set -ex; \
|
|||||||
xmlrpc \
|
xmlrpc \
|
||||||
{{ ) else "" end -}}
|
{{ ) else "" end -}}
|
||||||
; \
|
; \
|
||||||
rm -r /tmp/pear; \
|
[ -d /tmp/pear ] && rm -r /tmp/pear; \
|
||||||
\
|
\
|
||||||
runDeps="$( \
|
runDeps="$( \
|
||||||
scanelf --needed --nobanner --format '%n#p' --recursive "$extDir" \
|
scanelf --needed --nobanner --format '%n#p' --recursive "$extDir" \
|
||||||
@ -159,7 +158,7 @@ RUN set -ex; \
|
|||||||
xmlrpc \
|
xmlrpc \
|
||||||
{{ ) else "" end -}}
|
{{ ) else "" end -}}
|
||||||
; \
|
; \
|
||||||
rm -r /tmp/pear; \
|
[ -d /tmp/pear ] && rm -r /tmp/pear; \
|
||||||
\
|
\
|
||||||
# reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies
|
# reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies
|
||||||
apt-mark auto '.*' > /dev/null; \
|
apt-mark auto '.*' > /dev/null; \
|
||||||
|
Loading…
Reference in New Issue
Block a user