dotfiles/arch/bin/conditional-vdirsyncer.sh

11 lines
263 B
Bash
Raw Normal View History

2022-08-24 08:07:33 +00:00
#!/bin/bash
set -euo pipefail
if [[ -n $(secret-tool lookup service nextcloud) ]]; then
/usr/bin/vdirsyncer discover
/usr/bin/vdirsyncer sync --force-delete my_contacts/z-app-generated--contactsinteraction--recent
else
echo "Failed to unlock database"
fi