From e691eb7a10d1ed618cb670886340b55ad5b7686a Mon Sep 17 00:00:00 2001 From: intrigeri Date: Wed, 17 Aug 2011 12:00:16 +0200 Subject: Allow 'when = XXX' in sh jobs. when=XXX did work already. This patch allow to write this with spaces around the equal sign - as in every other backup.d/ file. --- handlers/sh.in | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'handlers/sh.in') diff --git a/handlers/sh.in b/handlers/sh.in index b070f3b..384ca52 100644 --- a/handlers/sh.in +++ b/handlers/sh.in @@ -5,4 +5,11 @@ # runs the file /etc/backup.d/scriptname.sh # +# No-op function so that 'when = XXX' can be written as such in +# backup.d/*.sh, i.e. with spaces around the equal sign - as in every +# other backup.d/ file. +function when() { + true +} + [ $test ] || ( . $1 ) -- cgit v1.2.3