--- branches/magellan-next/include/cvs.sminc 2010/09/28 19:50:42 7094 +++ branches/magellan-next/include/cvs.sminc 2010/09/28 20:00:48 7095 @@ -37,6 +37,9 @@ mv ${temp}/${MY_CVS_MODULE} ${SRCDIR} || die cd ${SRCDIR} + # prune old cruft + [[ -d "${temp}" ] && { rm -r ${temp} || die; } + # correct permissions find ${SRCDIR} -type f -exec chmod 0644 '{}' ';' find ${SRCDIR} -type d -exec chmod 0755 '{}' ';'