Revise test to handle different exit code.

test for exit code 3 instead of 255.
This commit is contained in:
Junichi Uekawa 2008-11-02 12:26:45 +00:00
parent c35c712791
commit e1e6940146
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@
WORKTARGET=$(mktemp -d)
./lsyncd --no-daemon --rsync-binary /wrong/path/to/rsync . "${WORKTARGET}"
if [[ $? = 255 ]]; then
if [[ $? = 3 ]]; then
rmdir "${WORKTARGET}"
exit 0;
else