Skip to content

Commit

Permalink
Fix info and license generation going to incorrect files
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanoasis committed Dec 11, 2021
1 parent 2d03a39 commit 97f28f4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion bin/scripts/gotta-patch-em-all-font-patcher!.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 97f28f4

Please sign in to comment.