Detect if password database is not present

master
Hektor Misplon 2023-06-12 00:25:20 +02:00
parent 22fd72501d
commit 5b4d9ec52b
1 changed files with 6 additions and 1 deletions

View File

@ -8,4 +8,9 @@
# `systemctl --user enable save-passwddb.service`
# `systemctl --user enable save-passwddb.timer`
if [ -f "$HOME/doc/passswd.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"
exit 1
fi