mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-23 07:08:33 +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)
|
WORKTARGET=$(mktemp -d)
|
||||||
./lsyncd --no-daemon --rsync-binary /wrong/path/to/rsync . "${WORKTARGET}"
|
./lsyncd --no-daemon --rsync-binary /wrong/path/to/rsync . "${WORKTARGET}"
|
||||||
if [[ $? = 255 ]]; then
|
if [[ $? = 3 ]]; then
|
||||||
rmdir "${WORKTARGET}"
|
rmdir "${WORKTARGET}"
|
||||||
exit 0;
|
exit 0;
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user