mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-09-19 09:51:48 +02:00
gotta-patch-em-all: Simplify pathnames
[why] For some reason we work with strange paths like "root/a/b/../../c/d/e" instead of "root/c/d/e". [how] Use dirname to go directories up. Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
1bada00ed6
commit
d9a2f1ad28
1 changed files with 3 additions and 3 deletions
|
@ -19,9 +19,9 @@ type fontforge >/dev/null 2>&1 || {
|
|||
sd="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
|
||||
|
||||
res1=$(date +%s)
|
||||
parent_dir="${sd}/../../"
|
||||
parent_dir=$(dirname $(dirname ${sd})) # two levels up (i.e. ../../)
|
||||
# Set source and target directories
|
||||
source_fonts_dir="${sd}/../../src/unpatched-fonts"
|
||||
source_fonts_dir="${parent_dir}/src/unpatched-fonts"
|
||||
like_pattern='.*\.\(otf\|ttf\|sfd\)'
|
||||
complete_variations_per_family=4
|
||||
font_typefaces_count=0
|
||||
|
@ -30,7 +30,7 @@ complete_variation_count=0
|
|||
total_variation_count=0
|
||||
total_count=0
|
||||
last_parent_dir=""
|
||||
unpatched_parent_dir="bin/scripts/../../src/unpatched-fonts"
|
||||
unpatched_parent_dir="src/unpatched-fonts"
|
||||
patched_parent_dir="patched-fonts"
|
||||
timestamp_parent_dir=${patched_parent_dir}
|
||||
max_parallel_process=8
|
||||
|
|
Loading…
Reference in a new issue