improve syncclouds with caldav env var

This commit is contained in:
Alexander Bocken 2024-01-02 12:37:32 +01:00
parent e2e1ff9536
commit c019575423
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8

View File

@ -30,10 +30,9 @@ echo "syncclouds.sh: calcurse-caldav"
{ {
# remove lock file if calcurse-caldav is not running # remove lock file if calcurse-caldav is not running
pgrep -x calcurse-caldav || [ -f ~/.local/share/calcurse/caldav/lock ] && rm ~/.local/share/calcurse/caldav/lock pgrep -x calcurse-caldav || [ -f ~/.local/share/calcurse/caldav/lock ] && rm ~/.local/share/calcurse/caldav/lock
calcurse-caldav CALCURSE_CALDAV_PASSWORD=$(pass server/seenas/nextcloud_admin_pass) calcurse-caldav
} > /dev/null 2>&1 & } > /dev/null 2>&1 &
calcurse_pid=$! calcurse_pid=$!
echo "calcurse_pid: $calcurse_pid"
# Wait for all processes to complete and print a message for each one # Wait for all processes to complete and print a message for each one