Also filter to only PAPERLESS_ variables

This commit is contained in:
Trenton Holmes 2023-01-07 08:03:36 -08:00 committed by Trenton H
parent 54013bac67
commit 56a1b5c749

View File

@ -14,7 +14,7 @@ do
# Extract the name of the environment variable
env_name=${line%%=*}
# Check if it ends in "_FILE"
if [[ ${env_name} == *_FILE ]]; then
if [[ ${env_name} == PAPERLESS_*_FILE ]]; then
# Extract the value of the environment
env_value=${line#*=}