From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Thu, 1 May 2025 20:50:25 +0000 (-0700) Subject: Fix: Trim off the path portion so the comparision can properly skip (#9839) X-Git-Tag: v2.16.0~2^2~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c83b0bfca66b5851ca71f9f9ae4e53ff2891fccc;p=thirdparty%2Fpaperless-ngx.git Fix: Trim off the path portion so the comparision can properly skip (#9839) --- diff --git a/docker/rootfs/etc/s6-overlay/s6-rc.d/init-env-file/run b/docker/rootfs/etc/s6-overlay/s6-rc.d/init-env-file/run index 9b3e2964f..d2c118ddb 100755 --- a/docker/rootfs/etc/s6-overlay/s6-rc.d/init-env-file/run +++ b/docker/rootfs/etc/s6-overlay/s6-rc.d/init-env-file/run @@ -9,7 +9,7 @@ if find /run/s6/container_environment/*"_FILE" -maxdepth 1 > /dev/null 2>&1; the for FILENAME in /run/s6/container_environment/*; do if [[ "${FILENAME##*/}" == PAPERLESS_*_FILE ]]; then # This should have been named different.. - if [[ ${FILENAME} == "PAPERLESS_OCR_SKIP_ARCHIVE_FILE" || ${FILENAME} == "PAPERLESS_MODEL_FILE" ]]; then + if [[ "${FILENAME##*/}" == "PAPERLESS_OCR_SKIP_ARCHIVE_FILE" || "${FILENAME##*/}" == "PAPERLESS_MODEL_FILE" ]]; then continue fi SECRETFILE=$(cat "${FILENAME}")