This commit is contained in:
Axel Kittenberger 2008-12-05 22:26:03 +00:00
parent 6b0998093a
commit cbe571267d
1 changed files with 3 additions and 1 deletions

View File

@ -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