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

15 lines
309 B
Plaintext
Raw Normal View History

#!@TERMUX_PREFIX@/bin/sh
2018-09-10 00:42:26 +02:00
set -e
PREFIX="@TERMUX_PREFIX@"
2018-09-10 00:42:26 +02:00
if [ "${1}" = "triggered" ]; then
2020-12-08 12:21:22 +01:00
if [ -x "${PREFIX}/bin/update-mime-database" ]; then
update-mime-database "${PREFIX}/share/mime"
fi
exit 0
2018-09-10 00:42:26 +02:00
fi
if [ -x "${PREFIX}/bin/update-mime-database" ]; then
2020-12-08 12:21:22 +01:00
update-mime-database "${PREFIX}/share/mime"
2018-09-10 00:42:26 +02:00
fi