Merge pull request #11 from onovy/lock-fix
Locking fix in SyncOnChanges mode.
This commit is contained in:
commit
f2b4dbf75f
5
osync.sh
5
osync.sh
|
@ -1992,9 +1992,9 @@ function SyncOnChanges
|
||||||
do
|
do
|
||||||
if [ "$ConfigFile" != "" ]
|
if [ "$ConfigFile" != "" ]
|
||||||
then
|
then
|
||||||
cmd="bash $osync_cmd \"$ConfigFile\" $opts --no-locks"
|
cmd="bash $osync_cmd \"$ConfigFile\" $opts"
|
||||||
else
|
else
|
||||||
cmd="bash $osync_cmd $opts --no-locks"
|
cmd="bash $osync_cmd $opts"
|
||||||
fi
|
fi
|
||||||
eval $cmd
|
eval $cmd
|
||||||
retval=$?
|
retval=$?
|
||||||
|
@ -2109,6 +2109,7 @@ do
|
||||||
;;
|
;;
|
||||||
--on-changes)
|
--on-changes)
|
||||||
sync_on_changes=1
|
sync_on_changes=1
|
||||||
|
nolocks=1
|
||||||
;;
|
;;
|
||||||
--no-locks)
|
--no-locks)
|
||||||
nolocks=1
|
nolocks=1
|
||||||
|
|
Loading…
Reference in New Issue