From 3d8d673cb5db3399a1801517829bba35e96abcff Mon Sep 17 00:00:00 2001 From: Fini Jastrow Date: Mon, 24 Oct 2022 14:15:03 +0200 Subject: [PATCH] patch-em-all: Purge old license files [why] Old (renamed) license files are not cleaned up automatically. The new files will be put into the patched-fonts dir, but old ones not removed. [how] With commit afd7ba10 patch-em-all: Purge destination dirs if possible the script purges old font files from the patched-fonts directory to get rid of renamed font files. This has been deliberately limited to ttf and otf files. But as all license files are automatically copied over we can also remove them. This (finally) remove the possibility to manually put any files in those directories. This can be good or bad. Signed-off-by: Fini Jastrow --- bin/scripts/gotta-patch-em-all-font-patcher!.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/scripts/gotta-patch-em-all-font-patcher!.sh b/bin/scripts/gotta-patch-em-all-font-patcher!.sh index 4fda09ff1..9e8a6b92e 100755 --- a/bin/scripts/gotta-patch-em-all-font-patcher!.sh +++ b/bin/scripts/gotta-patch-em-all-font-patcher!.sh @@ -92,7 +92,7 @@ function patch_font { if [ -n ${purge} -a -d "${patched_font_dir}complete" ] then echo "Purging patched font dir ${patched_font_dir}complete" - rm ${patched_font_dir}complete/*.[to]tf + rm ${patched_font_dir}complete/* fi config_parent_dir=$( cd "$( dirname "$f" )" && cd ".." && pwd)