aboutsummaryrefslogtreecommitdiff
path: root/handlers/sh.in
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2011-08-17 12:00:16 +0200
committerintrigeri <intrigeri@boum.org>2011-08-17 12:15:37 +0200
commite691eb7a10d1ed618cb670886340b55ad5b7686a (patch)
tree25096a7863b793367146ac048d7e199dd4ce7240 /handlers/sh.in
parent52eb8d0c4b4b1d9f0777c6f0b9ff4d4a86858874 (diff)
downloadbackupninja-e691eb7a10d1ed618cb670886340b55ad5b7686a.tar.gz
backupninja-e691eb7a10d1ed618cb670886340b55ad5b7686a.tar.bz2
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.
Diffstat (limited to 'handlers/sh.in')
-rw-r--r--handlers/sh.in7
1 files changed, 7 insertions, 0 deletions
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 )