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

14 lines
466 B
Plaintext
Raw Normal View History

2020-12-08 12:21:22 +01:00
#!/data/data/com.termux/files/usr/bin/bash
2018-09-10 00:42:26 +02:00
set -e
PREFIX="/data/data/com.termux/files/usr"
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