startsync: make it more lenient when detecting slowness

This commit is contained in:
Daniella / Tove 2024-10-28 22:15:17 +01:00
parent 03128e4d33
commit 74825e5ac7
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -13,7 +13,7 @@ pkgs.writeShellScriptBin "startsync" ''
while ! ls ~/sync/Passwords.kdbx ; do sleep 0.2 ; done while ! ls ~/sync/Passwords.kdbx ; do sleep 0.2 ; done
while true ; do while true ; do
(cat ~/sync/test > /dev/null ; touch ~/.syncfs_ok) & (cat ~/sync/test > /dev/null ; touch ~/.syncfs_ok) &
sleep 5 sleep 7
if ! [ -e ~/.syncfs_ok ] ; then if ! [ -e ~/.syncfs_ok ] ; then
"$script" stop "$script" stop
exit exit