From 97f28f4a17f42b42c57ba3dc5332f3e9d1794370 Mon Sep 17 00:00:00 2001 From: Ryan L McIntyre Date: Sat, 11 Dec 2021 13:43:39 -0800 Subject: [PATCH] Fix info and license generation going to incorrect files --- bin/scripts/gotta-patch-em-all-font-patcher!.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 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 575cd4c515..e1a322b161 100755 --- a/bin/scripts/gotta-patch-em-all-font-patcher!.sh +++ b/bin/scripts/gotta-patch-em-all-font-patcher!.sh @@ -186,7 +186,16 @@ function generate_info { echo "$LINE_PREFIX * Adding 'Possible Combinations' section" generate_readme "$patched_font_dir" 1 echo "$LINE_PREFIX * Copying license files" - copy_license "$config_parent_dir" "$patched_font_dir" + + if [ $is_unpatched_fonts_root == "0" ]; + then + # if we are not at the unpatched fonts root, copy all license from config parent dir + copy_license "$config_parent_dir" "$patched_font_dir" + else + # otherwise we nedd to copy files from the config dir itself + copy_license "$config_dir" "$patched_font_dir" + fi + last_parent_dir=$config_parent_dir total_variation_count=$((total_variation_count+combination_count))