diff --git a/bin/scripts/generate-casks.sh b/bin/scripts/generate-casks.sh index 7b933f6d4..9875bbe30 100755 --- a/bin/scripts/generate-casks.sh +++ b/bin/scripts/generate-casks.sh @@ -233,7 +233,7 @@ while read -r filename; do FONTS=() while IFS= read -d $'\0' -r file; do FONTS=("${FONTS[@]}" "$file") - done < <(find "$searchdir" -type f -iwholename '*complete*' \( -iname '*.[o,t]tf' ! -wholename '*Windows Compatible*' \) -print0 | sort -z) + done < <(find "$searchdir" -type f -iwholename '*complete*' \( -iname '*.[ot]tf' ! -wholename '*Windows Compatible*' \) -print0 | sort -z) outputdir=$PWD/../casks diff --git a/bin/scripts/generate-fontconfig.sh b/bin/scripts/generate-fontconfig.sh index 713a5a86e..990897b7f 100755 --- a/bin/scripts/generate-fontconfig.sh +++ b/bin/scripts/generate-fontconfig.sh @@ -51,7 +51,7 @@ do while IFS= read -d $'\0' -r file ; do FONTS=("${FONTS[@]}" "$file") # limit to first variation of family (folder) - done < <(find "$searchdir" -type f -iname '*.[o,t]tf' -print0) + done < <(find "$searchdir" -type f -iname '*.[ot]tf' -print0) #done for font in "${FONTS[@]}"; do diff --git a/bin/scripts/gotta-patch-em-all-font-patcher!.sh b/bin/scripts/gotta-patch-em-all-font-patcher!.sh index 670763131..542279f18 100755 --- a/bin/scripts/gotta-patch-em-all-font-patcher!.sh +++ b/bin/scripts/gotta-patch-em-all-font-patcher!.sh @@ -364,7 +364,7 @@ function copy_license { # cp "$license_file" "$dest" # makes archiving multiple harder when we junk the paths for the archive [[ -d "$dest/complete" ]] || mkdir -p "$dest/complete" cp "$license_file" -t "$dest/complete" - done < <(find "$src" -iregex ".*\(licen[c,s]e\|ofl\).*" -type f -print0) + done < <(find "$src" -iregex ".*\(licen[cs]e\|ofl\).*" -type f -print0) } # Re-generate all the readmes @@ -416,7 +416,7 @@ then # some of the source font files in that directory. last_source_dir=${current_source_dir} num_to_patch=$(find "${current_source_dir}" -iregex ${like_pattern} -type f | wc -l) - num_existing=$(find "${current_source_dir}" -iname "*.[o,t]tf" -o -iname "*.sfd" -type f | wc -l) + num_existing=$(find "${current_source_dir}" -iname "*.[ot]tf" -o -iname "*.sfd" -type f | wc -l) if [ ${num_to_patch} -eq ${num_existing} ] then purge_destination="TRUE" diff --git a/install.sh b/install.sh index f2dacaf24..137c317db 100755 --- a/install.sh +++ b/install.sh @@ -179,7 +179,7 @@ implode find_dirs "\" \"" "${nerdfonts_dirs[@]}" find_dirs="\"$find_dirs\"" # Put it all together into the find command we want -find_command="find $find_dirs \\( \\( -name '*.[o,t]tf' -or -name '*.pcf.gz' \\) $find_include $find_exclude \\) -type f -print0" +find_command="find $find_dirs \\( \\( -name '*.[ot]tf' -or -name '*.pcf.gz' \\) $find_include $find_exclude \\) -type f -print0" # Find all the font files and store in array files=()