From ac41b8e2ece3b119744c9eb39c62ddc9b2c2d21f Mon Sep 17 00:00:00 2001 From: Francesco Camuffo Date: Fri, 8 Nov 2024 16:13:34 +0100 Subject: [PATCH] Dockerfile: fix to have many plugins zips Check for zip files using ls instead of [ -f *zip ]. If * is expanded to more that one file, it becomes invalid syntax. --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a89ccff..2184e6c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,8 +49,9 @@ ADD .placeholder ${PLUG_IN_PATHS} /output/plugins/ COPY geoserver-plugin-download.sh /usr/local/bin/geoserver-plugin-download.sh RUN /usr/local/bin/geoserver-plugin-download.sh /output/plugins/ ${PLUG_IN_URLS} RUN \ - if [ -f *.zip ] ; then \ + if ls *.zip >/dev/null 2>&1; then \ unzip -o "./*.zip"; \ + rm ./*zip; \ fi WORKDIR /output/webapp