mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-06-15 14:42:23 +00:00
Revise test to handle different exit code.
test for exit code 3 instead of 255.
This commit is contained in:
parent
c35c712791
commit
e1e6940146
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user