termux-packages/x11-packages/desktop-file-utils/postrm
2022-04-18 14:08:05 +05:30

13 lines
329 B
Bash
Executable File

#!/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