mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-06 08:40:44 +00:00
fix text
This commit is contained in:
parent
6b0998093a
commit
cbe571267d
@ -6,9 +6,11 @@
|
||||
# message
|
||||
|
||||
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}"
|
||||
exit 0;
|
||||
else
|
||||
rmdir "${WORKTARGET}"
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user