Skip to content

Commit

Permalink
Add support for generating info as well as specifying a like pattern …
Browse files Browse the repository at this point in the history
…(first param to script)
  • Loading branch information
ryanoasis committed Apr 12, 2020
1 parent 7f344ce commit bc12c22
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bin/scripts/gotta-patch-em-all-font-patcher!.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
# Nerd Fonts Version: 2.1.0
# Script Version: 1.1.1

# used for debugging
#set -x
# used for debugging
# set -x

# for executing script to rebuild JUST the readmes:
# ./gotta-patch-em-all-font-patcher\!.sh "" info
# to test this script with a single font (pattern):
# ./gotta-patch-em-all-font-patcher\!.sh "iosevka" info

LINE_PREFIX="# [Nerd Fonts] "

Expand Down Expand Up @@ -34,7 +36,7 @@ unpatched_parent_dir="bin/scripts/../../src/unpatched-fonts"
patched_parent_dir="patched-fonts"
max_parallel_process=64

if [ $# -eq 1 ]
if [ $# -eq 1 ] || [ "$1" != "" ]
then
like_pattern=$1
echo "$LINE_PREFIX Parameter given, limiting search and patch to pattern '$like_pattern' given"
Expand Down

0 comments on commit bc12c22

Please sign in to comment.