Merge pull request #11 from onovy/lock-fix

Locking fix in SyncOnChanges mode.
This commit is contained in:
Orsiris de Jong 2015-03-30 18:21:54 +02:00
commit f2b4dbf75f
1 changed files with 3 additions and 2 deletions

View File

@ -1992,9 +1992,9 @@ function SyncOnChanges
do
if [ "$ConfigFile" != "" ]
then
cmd="bash $osync_cmd \"$ConfigFile\" $opts --no-locks"
cmd="bash $osync_cmd \"$ConfigFile\" $opts"
else
cmd="bash $osync_cmd $opts --no-locks"
cmd="bash $osync_cmd $opts"
fi
eval $cmd
retval=$?
@ -2109,6 +2109,7 @@ do
;;
--on-changes)
sync_on_changes=1
nolocks=1
;;
--no-locks)
nolocks=1