#!/bin/sh

if [ "$#" -ge 1 ]; then
    exec /usr/local/libexec/Pony "$*"
else
    if [ ! -f ~/.config/pony.options ]; then
	mkdir -p ~/.config/
	cp /usr/local/share/pink-pony/pony.options ~/.config/pony.options
	chmod u+w ~/.config/pony.options
    fi
    exec /usr/local/libexec/Pony ~/.config/pony.options
fi
