pkgsrc/databases/shared-mime-info/DEINSTALL
wiz d8751949d5 Fix logic error in 1.4 by reverting to 1.3.
However, redirect stderr to /dev/null to get rid of unnecessary warning
that triggered 1.4.
2013-10-08 10:40:21 +00:00

12 lines
317 B
Text

# $NetBSD: DEINSTALL,v 1.5 2013/10/08 10:40:21 wiz Exp $
MIMEDB_PATH="@MIMEDB_PATH@"
case ${STAGE} in
POST-DEINSTALL)
(cd ${MIMEDB_PATH} && \
${LS} . | ${GREP} -v '^packages$' | ${XARGS} ${RM} -rf)
${RMDIR} ${MIMEDB_PATH}/packages 2>/dev/null || ${TRUE}
${RMDIR} ${MIMEDB_PATH} 2>/dev/null || ${TRUE}
;;
esac