ssy: fix getting stuck

This commit is contained in:
Daniella / Tove 2024-11-04 00:38:30 +01:00
parent 0b96e7967c
commit 9c1f64b488
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -3,7 +3,7 @@ with import <nixpkgs> {};
pkgs.writeShellScriptBin "ssy" '' pkgs.writeShellScriptBin "ssy" ''
#!/bin/sh #!/bin/sh
startsync > /dev/null 2>&1 & disown startsync > /dev/null 2>&1 & disown
while ls ~/sync/Passwords.kdbx > /dev/null 2>&1 ; do sleep 0.1 ; done sleep 0.7
while ! ls ~/sync/Passwords.kdbx > /dev/null 2>&1 ; do sleep 0.1 ; done while ! ls ~/sync/Passwords.kdbx > /dev/null 2>&1 ; do sleep 0.1 ; done
'' ''