#!/bin/sh
# check-datebook.sh: datebook check script by Garth Dahlstrom (ironstorm@users.sf.net) 2005
if [ `cat /root/Applications/datebook/datebook.xml | tr -cd '\000' | wc -c | sed "s/\s//g"` -ne 0 ]; then
  echo datebook.xml contains null characters and is being cleaned.
  ( cd /root/Applications/datebook; mv datebook.xml datebook-trunc.xml; cat datebook-trunc.xml | tr -d '\000' > datebook.xml )
fi
