ssy: wait for unmount

This commit is contained in:
Daniella / Tove 2024-11-04 00:34:07 +01:00
parent d9baa50301
commit 0b96e7967c
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -3,6 +3,7 @@ with import <nixpkgs> {};
pkgs.writeShellScriptBin "ssy" ''
#!/bin/sh
startsync > /dev/null 2>&1 & disown
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
''