lsyncd/tests/wrong-rsync.sh

17 lines
390 B
Bash
Raw Normal View History

2008-10-06 20:35:52 +00:00
#!/bin/bash
# copyright 2008 Junichi Uekawa <dancer@debian.org>
# licensed under GPLv2 or later, see the file ../COPYING for details.
# make sure that program exits with exit code of -1 when rsync path is
# wrong.
WORKTARGET=$(mktemp -d)
2008-11-20 21:38:58 +00:00
./lsyncd --no-daemon --binary /wrong/path/to/rsync . "${WORKTARGET}"
if [[ $? = 3 ]]; then
2008-10-06 20:35:52 +00:00
rmdir "${WORKTARGET}"
exit 0;
else
exit 1;
fi