From e823fef87c2e7bf6a1670ff738c4143800230160 Mon Sep 17 00:00:00 2001 From: Norbert Varzariu Date: Fri, 22 Jan 2016 09:56:33 +0100 Subject: [PATCH] fix templates (do not create include/exclude file entries if no in/excludes given) --- templates/rsnapshot.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/rsnapshot.erb b/templates/rsnapshot.erb index f6d6868..bc14de7 100644 --- a/templates/rsnapshot.erb +++ b/templates/rsnapshot.erb @@ -85,12 +85,12 @@ du_args <%= @du_args %> <% if @one_fs != '' -%> one_fs <%= @one_fs_num %> <% end -%> -<% if @include != '' -%> +<% if not @real_include.is_empty? -%> <% if @include_file != '' -%> include_file <%= @include_file %> <% end -%> <% end -%> -<% if @exclude != '' -%> +<% if not @real_exclude.is_empty? -%> <% if @exclude_file != '' -%> exclude_file <%= @exclude_file %> <% end -%>