mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-05 16:12:32 +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