Add print statements

Makes debugging easier
This commit is contained in:
Jean-Claude 2023-09-19 08:34:04 +02:00
parent 191e9dd196
commit 131b0a87e3
Signed by: jeanclaude
GPG Key ID: 8A300F57CBB9F63E
1 changed files with 6 additions and 0 deletions

View File

@ -6,15 +6,19 @@ shopt -s extglob
calendarPath="/home/jeanclaude/.local/share/calendar/"
# Get from singlefile
echo "Sync singlefile"
vdirsyncer --config /home/jeanclaude/Dotfiles/CalCard/VdirSyncer/config sync calendars_to_singlefile
# Get from remote
echo "Sync remote"
vdirsyncer --config /home/jeanclaude/Dotfiles/CalCard/VdirSyncer/config sync calendars_to_remote
# Push to singlefile
echo "Sync singlefile"
vdirsyncer --config /home/jeanclaude/Dotfiles/CalCard/VdirSyncer/config sync calendars_to_singlefile
# Generate merged
echo "Create merged"
rm -fr "${calendarPath}/merged/personal"
rm -fr "${calendarPath}/merged/studies"
@ -25,7 +29,9 @@ cp "${calendarPath}/regular/personal_"*"/"* "${calendarPath}/merged/personal"
cp "${calendarPath}/regular/studies_"*"/"* "${calendarPath}/merged/studies"
# Push merged
echo "Sync remote"
vdirsyncer --config /home/jeanclaude/Dotfiles/CalCard/VdirSyncer/config sync calendars_merged_to_remote
# Sync Calendar
echo "Sync singlefile"
vdirsyncer --config /home/jeanclaude/Dotfiles/CalCard/VdirSyncer/config sync contacts