From 57b6a468b14308fe4cf9b411067f31ee0430e79b Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Mon, 12 Jun 2023 00:26:40 +0200 Subject: [PATCH] Detect if password database is not present --- .bin/save-passwddb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bin/save-passwddb b/.bin/save-passwddb index 5fbd0ad..a1eaeff 100755 --- a/.bin/save-passwddb +++ b/.bin/save-passwddb @@ -8,7 +8,7 @@ # `systemctl --user enable save-passwddb.service` # `systemctl --user enable save-passwddb.timer` -if [ -f "$HOME/doc/passswd.kdbx" ]; then +if [ -f "$HOME/doc/passwd.kdbx" ]; then rclone copy "$HOME/doc/passwd.kdbx" google-drive: else echo "Password database not found, use 'rclone copy google-drive:passwd.kdbx $HOME/doc/passwd.kdbx' to restore"