0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-23 14:56:16 +00:00
termux-packages/x11-packages/shared-mime-info/postinst
2022-04-18 14:50:30 +05:30

15 lines
309 B
Bash
Executable File

#!@TERMUX_PREFIX@/bin/sh
set -e
PREFIX="@TERMUX_PREFIX@"
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