From bc12c2281fb81b51550eb76cc99d19c1d89092ea Mon Sep 17 00:00:00 2001 From: Ryan L McIntyre Date: Sun, 12 Apr 2020 03:51:29 -0700 Subject: [PATCH] Add support for generating info as well as specifying a like pattern (first param to script) --- bin/scripts/gotta-patch-em-all-font-patcher!.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/scripts/gotta-patch-em-all-font-patcher!.sh b/bin/scripts/gotta-patch-em-all-font-patcher!.sh index b0b03a6495..ec78456ae3 100755 --- a/bin/scripts/gotta-patch-em-all-font-patcher!.sh +++ b/bin/scripts/gotta-patch-em-all-font-patcher!.sh @@ -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] " @@ -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"