summaryrefslogtreecommitdiff
path: root/user/shared-mime-info/shared-mime-info.trigger
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-06 03:36:45 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-06 03:36:50 -0500
commit08f00007e11dfded1ce9c65b5eb212164079c237 (patch)
tree3955a9afd17b9f46fa26c8edb0c316c4b628fa29 /user/shared-mime-info/shared-mime-info.trigger
parentaa7977f03becc5d5941c97d1ad2ef8dd33a14c7f (diff)
downloadpackages-08f00007e11dfded1ce9c65b5eb212164079c237.tar.gz
packages-08f00007e11dfded1ce9c65b5eb212164079c237.tar.bz2
packages-08f00007e11dfded1ce9c65b5eb212164079c237.tar.xz
packages-08f00007e11dfded1ce9c65b5eb212164079c237.zip
user/shared-mime-info: pull in, bump, take, fix
Diffstat (limited to 'user/shared-mime-info/shared-mime-info.trigger')
-rw-r--r--user/shared-mime-info/shared-mime-info.trigger8
1 files changed, 8 insertions, 0 deletions
diff --git a/user/shared-mime-info/shared-mime-info.trigger b/user/shared-mime-info/shared-mime-info.trigger
new file mode 100644
index 000000000..be5371242
--- /dev/null
+++ b/user/shared-mime-info/shared-mime-info.trigger
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+for i in "$@"; do
+ if [ -d "$i" ]; then
+ update-mime-database "$i" > /dev/null 2>&1
+ fi
+done
+sync