<pre style='margin:0'>
Clemens Lang (neverpanic) pushed a commit to branch master
in repository macports-infrastructure.

</pre>
<p><a href="https://github.com/macports/macports-infrastructure/commit/c8d00384302852bde2e254ef45e5b5eb576e9a50">https://github.com/macports/macports-infrastructure/commit/c8d00384302852bde2e254ef45e5b5eb576e9a50</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'>     new c8d0038  containers/paste: Only delete images from the same container
</span>c8d0038 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit c8d00384302852bde2e254ef45e5b5eb576e9a50
</span>Author: Clemens Lang <cal@macports.org>
AuthorDate: Thu Jun 11 22:59:55 2020 +0200

<span style='display:block; white-space:pre;color:#404040;'>    containers/paste: Only delete images from the same container
</span>---
 containers/paste/deploy.sh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/containers/paste/deploy.sh b/containers/paste/deploy.sh
</span><span style='display:block; white-space:pre;color:#808080;'>index 61121b0..556021c 100755
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/containers/paste/deploy.sh
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/containers/paste/deploy.sh
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -56,9 +56,10 @@ if [ -n "$RUNNING_CONTAINER_ID" ]; then
</span> fi
 
 # Cleanup old images
<span style='display:block; white-space:pre;background:#ffe0e0;'>-CLEANUP_IMAGES=$(docker images --format "{{.ID}}" --filter "before=$CONTAINERNAME:$NEWREV-$TIMESTAMP" | sed "1,${KEEP_OLD_VERSIONS}d" | tr '\n' ' ')
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-if [ -n "$CLEANUP_IMAGES" ]; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-   docker rmi "$CLEANUP_IMAGES"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+CLEANUP_IMAGES_STRING=$(docker images --format "{{.ID}}" --filter "before=$CONTAINERNAME:$NEWREV-$TIMESTAMP" "$CONTAINERNAME" | sed "1,${KEEP_OLD_VERSIONS}d" | tr '\n' ' ')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if [ -n "$CLEANUP_IMAGES_STRING" ]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   IFS=' ' read -r -a CLEANUP_IMAGES <<<"$CLEANUP_IMAGES_STRING"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   docker rmi "${CLEANUP_IMAGES[@]}"
</span> fi
 
 printf "Updated %s to %s\n" "$CONTAINERNAME" "$NEWREV-$TIMESTAMP"
</pre><pre style='margin:0'>

</pre>