termux-packages/x11-packages/desktop-file-utils/postrm

13 lines
329 B
Plaintext
Raw Normal View History

2018-09-10 00:42:26 +02:00
#!/data/data/com.termux/files/usr/bin/sh
set -e
APPDIR="/data/data/com.termux/files/usr/share/applications"
if [ "${1}" = "remove" ]; then
if [ -d "${APPDIR}" ]; then
rm -f "${APPDIR}/mimeinfo.cache"
if [ ! -L "${APPDIR}" ]; then
rmdir --ignore-fail-on-non-empty "${APPDIR}"
fi
fi
fi