mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-08 17:24:06 +00:00
fix text
This commit is contained in:
parent
6b0998093a
commit
cbe571267d
@ -6,9 +6,11 @@
|
|||||||
# message
|
# message
|
||||||
|
|
||||||
WORKTARGET=$(mktemp -d)
|
WORKTARGET=$(mktemp -d)
|
||||||
if [[ $( ./lsyncd --logfile /nonexisting/path/name . "${WORKTARGET}" ) =~ "cannot open logfile" ]]; then
|
if [[ $( ./lsyncd --logfile /nonexisting/path/name . "${WORKTARGET}" 2>&1 ) =~ "cannot open logfile [/nonexisting/path/name]!" ]]; then
|
||||||
rmdir "${WORKTARGET}"
|
rmdir "${WORKTARGET}"
|
||||||
exit 0;
|
exit 0;
|
||||||
else
|
else
|
||||||
|
rmdir "${WORKTARGET}"
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user