diff --git a/templates/restic_script_Linux.j2 b/templates/restic_script_Linux.j2 index 955b363..ac3f655 100644 --- a/templates/restic_script_Linux.j2 +++ b/templates/restic_script_Linux.j2 @@ -37,7 +37,7 @@ set -euxo pipefail Define path #} {% macro path(repo) -%} - {% if repo.src is defined %}{{ repo.src }}{% else %}$HOME/{{ repo.stdin_filename }}{% endif %} + {% if repo.src is defined and repo.src != None and (repo.src|length>0) %}{{ repo.src }}{% else %}{{ repo.stdin_filename }}{% endif %} {%- endmacro %} {# Define retention pattern