#!/bin/bash echo "This unit test will empty all events from evolution2. Do you want to continue?" echo "[y/N]" read -n 1 reply if [ "$reply" != "y" ] then exit 1 fi TMPFILE=`mktemp /tmp/evo2-sync.XXXXXX` || exit 1 echo "defaultdefaultdefault" > $TMPFILE osyncplugin evo2-sync --config $TMPFILE --type event --plugindir ../src/.libs || exit 1 rm -f $TMPFILE