diff --git a/templates/restic-wrapper.sh.j2 b/templates/restic-wrapper.sh.j2 index 89088f8..63a240c 100644 --- a/templates/restic-wrapper.sh.j2 +++ b/templates/restic-wrapper.sh.j2 @@ -9,4 +9,4 @@ export {{ k | upper }}={{ v | trim | quote }} {% endfor %} {% endif %} -"{{ restic_install_path }}/restic" {% if item.legacy_list_objects %}-o s3.list-objects-v1=true {% endif %}"$@" +"{{ restic_install_path }}/restic" {% if item.legacy_list_objects is defined %}-o s3.list-objects-v1={{ item.legacy_list_objects }} {% endif %}"$@"