mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-01-19 03:12:07 +02:00
Allow running gotta-patch-em-all from any dir
The script assumes that it's run from inside bin/scripts, by setting source and target directories according to the output of pwd. It doesn't perform any checks whether it's run from the right directory, so it just doesn't find the fonts if the working directory is different. Now it sets the directories relative to the script directory.
This commit is contained in:
parent
66b41ac750
commit
f18c02f345
@ -20,10 +20,13 @@ type fontforge >/dev/null 2>&1 || {
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Get script directory to set source and target dirs relative to it
|
||||
sd="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
|
||||
|
||||
res1=$(date +%s)
|
||||
parent_dir="${PWD}/../../"
|
||||
parent_dir="${sd}/../../"
|
||||
# Set source and target directories
|
||||
source_fonts_dir="${PWD}/../../src/unpatched-fonts"
|
||||
source_fonts_dir="${sd}/../../src/unpatched-fonts"
|
||||
like_pattern=''
|
||||
complete_variations_per_family=4
|
||||
font_typefaces_count=0
|
||||
|
Loading…
x
Reference in New Issue
Block a user