X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcron.dinstall;h=001ab117f2f0cc89ffe0dfc70b78de0bacf4eda6;hb=43e3cfd0724d425cdfe6528c76a5677ac95e6177;hp=7105fda7e1651d36d098d898eb4f007a6983bb73;hpb=1a3e776ff5a71efa29f0bcd1e057af7f71db9add;p=dak.git diff --git a/config/debian/cron.dinstall b/config/debian/cron.dinstall index 7105fda7..001ab117 100755 --- a/config/debian/cron.dinstall +++ b/config/debian/cron.dinstall @@ -208,6 +208,13 @@ while read FUNC ARGS TIME ERR BACKGROUND; do fi done + # ERR/BACKGROUND are boolean, check that they are. + for var in ERR BACKGROUND; do + if [[ ${!var} != false ]] && [[ ${!var} != true ]]; then + error "Illegal value ${!var} for ${var} (should be true or false), line for function ${FUNC}" + fi + done + case ${FUNC} in STATE) state ${ARGS}