dotfiles/arch/bin/conditional-vdirsyncer.sh
2022-08-24 04:07:33 -04:00

10 lines
263 B
Bash
Executable file

#!/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