#!/bin/sh
#
# Remove scriptherder data older than 7 days.
#

DIR="/var/cache/scriptherder/"

test -d ${DIR} || exit 0

find ${DIR} -type f -mtime +7 -print0 | xargs -0 rm -f