Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-blazer committed Oct 15, 2023
1 parent 8c33113 commit 96a6e3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions genric/nodejs/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ else
&& chmod +x "$startup_script"
fi

if [ "$CUSTOM_FONT_LOADER" = "false" ]; then
if [ "${CUSTOM_FONT_LOADER}" = 0 ]; then
# the below code gets all the font files from the https://github.com/tresthost/fonts/fonts repo
get_fonts=$(curl -s https://api.github.com/repos/tresthost/fonts/contents/fonts | grep download_url | cut -d '"' -f 4)
get_fonts=$(curl -s https://api.github.com/repos/tresthost/fonts/contents/fonts | grep download_url | cut -d '"' -f 4 | grep -E ".ttf$")
# loop through the fonts and download them
for font in $get_fonts; do
# get the font name
Expand Down

0 comments on commit 96a6e3c

Please sign in to comment.