From dcd59d0ade8f2f9ff70599320a80e6daa99273e4 Mon Sep 17 00:00:00 2001 From: akul <0xfabc@gmail.com> Date: Fri, 30 Jan 2026 10:11:39 +0400 Subject: [PATCH] config fix --- templates/config.yaml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/config.yaml.j2 b/templates/config.yaml.j2 index 7a76492..73b5378 100644 --- a/templates/config.yaml.j2 +++ b/templates/config.yaml.j2 @@ -178,7 +178,7 @@ checks: # Restrict the number of checked archives to the last n. Applies only to the "archives" check. check_last: {{ borgmatic_check_last }} -{% if borgmatic_commands is defined %} +{% if borgmatic_commands is defined and borgmatic_commands | length > 0 %} # Shell commands or scripts to execute before and after a backup or if an error has occurred. # IMPORTANT: All provided commands and scripts are executed with user permissions of borgmatic. # Do not forget to set secure permissions on this file as well as on any script listed (chmod 0700) to