mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-08 20:02:32 +01:00
e691eb7a10
when=XXX did work already. This patch allow to write this with spaces around the equal sign - as in every other backup.d/ file.
16 lines
416 B
Bash
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 )
|