Ignores a specific _FILE setting which doesn't actually get set to a file

This commit is contained in:
Trenton Holmes 2023-04-30 18:08:58 -07:00 committed by Trenton H
parent 0284100c2d
commit 613b71d23b

View File

@ -15,6 +15,10 @@ do
env_name=${line%%=*}
# Check if it starts with "PAPERLESS_" and ends in "_FILE"
if [[ ${env_name} == PAPERLESS_*_FILE ]]; then
# This should have been named different..
if [[ ${env_name} == "PAPERLESS_OCR_SKIP_ARCHIVE_FILE" ]]; then
continue
fi
# Extract the value of the environment
env_value=${line#*=}