termux-packages/x11-packages/shared-mime-info/postrm

14 lines
434 B
Plaintext
Raw Normal View History

#!@TERMUX_PREFIX@/bin/bash
2018-09-10 00:42:26 +02:00
set -e
PREFIX="@TERMUX_PREFIX@"
2018-09-10 00:42:26 +02:00
if [ "${1}" = purge ]; then
2020-12-08 12:21:22 +01:00
MIMEDIR="${PREFIX}/share/mime"
if [ -d "${MIMEDIR}" ]; then
rm -f "${MIMEDIR}"/{globs,globs2,icons,treemagic,generic-icons,types,magic,XMLnamespaces,subclasses,aliases,mime.cache}
rm -rf "${MIMEDIR}"/{application,audio,image,inode,message,model,multipart,text,video,x-content,x-epoc}
rmdir --ignore-fail-on-non-empty "${MIMEDIR}"
fi
2018-09-10 00:42:26 +02:00
fi