mirror of
https://github.com/termux/termux-packages.git
synced 2024-11-23 13:46:16 +00:00
7d2ce5f0d9
%ci:no-build
13 lines
394 B
Bash
Executable File
13 lines
394 B
Bash
Executable File
#!@TERMUX_PREFIX@/bin/sh
|
|
set -e
|
|
PREFIX="@TERMUX_PREFIX@"
|
|
|
|
if [ -d "${PREFIX}/share/fonts" ]; then
|
|
rm -f "${PREFIX}/share/fonts/.uuid"
|
|
for dir in $(find "${PREFIX}/share/fonts" -mindepth 1 -type d -printf '%p/\n'); do
|
|
[ ! -d "${dir}" ] && continue
|
|
rm -f "${dir}/.uuid" "${dir}/fonts.scale" "${dir}/fonts.dir"
|
|
rmdir --ignore-fail-on-non-empty "${dir}"
|
|
done
|
|
fi
|