backupninja/handlers/sh.in
intrigeri e691eb7a10 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.
2011-08-17 12:15:37 +02:00

16 lines
416 B
Bash

# -*- mode: sh; sh-basic-offset: 3; indent-tabs-mode: nil; -*-
# vim: set filetype=sh sw=3 sts=3 expandtab autoindent:
#
# shell script handler for backupninja
# 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 )