Skip to content

Commit

Permalink
cron scripts no longer exit nonzero if rsbackup not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
ewxrjk committed Jan 21, 2016
1 parent 406aade commit 49db8b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/Makefile.am
Expand Up @@ -45,7 +45,8 @@ ${CRONJOBS}: Makefile
rm -f $@.new
echo '#! /bin/sh' > $@.new
echo 'set -e' >> $@.new
echo 'test -x ${bindir}/rsbackup.cron && exec ${bindir}/rsbackup.cron $(subst rsbackup.,,$@)' >> $@.new
echo 'test -x ${bindir}/rsbackup.cron || exit 0' >> $@.new
echo 'exec ${bindir}/rsbackup.cron $(subst rsbackup.,,$@)' >> $@.new
chmod 555 $@.new
mv -f $@.new $@

Expand Down

0 comments on commit 49db8b9

Please sign in to comment.