From 8bed4df94caf9bfa51857bb45b32fd287c6680e1 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 21 Nov 2017 17:47:22 +0100 Subject: settings: Document that config must return true Signed-off-by: Florian Pritz --- lib/App/BorgRestore/Settings.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/App/BorgRestore/Settings.pm b/lib/App/BorgRestore/Settings.pm index 0e071b7..26a175e 100644 --- a/lib/App/BorgRestore/Settings.pm +++ b/lib/App/BorgRestore/Settings.pm @@ -36,6 +36,10 @@ You can set the following options in the config file. Note that the configuration file is parsed as a perl script. Thus you can also use any features available in perl itself. +Also note that it is important that the last statement of the file is positive +because it is used to check that running the config went well. You can simply +use "1;" on the last line as shown in the example config. + =over =item C<$borg_repo> @@ -85,6 +89,8 @@ the disk too much. ); $sqlite_cache_size = 2097152; +1; #ensure positive return value + =head1 LICENSE Copyright (C) 2016-2017 Florian Pritz Ebluewind@xinu.atE -- cgit v1.2.3-24-g4f1b