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

15 lines
359 B
Plaintext
Raw Normal View History

2018-09-10 00:42:26 +02:00
#!/data/data/com.termux/files/usr/bin/sh
set -e
PREFIX="/data/data/com.termux/files/usr"
if [ "${1}" = "triggered" ]; then
if [ -x "${PREFIX}/bin/update-mime-database" ]; then
update-mime-database "${PREFIX}/share/mime"
fi
exit 0
fi
if [ -x "${PREFIX}/bin/update-mime-database" ]; then
update-mime-database "${PREFIX}/share/mime"
fi