Skip to content

Error when building the fonts on Linux #16

@larsbs

Description

@larsbs

It seems that either the README is out of date or there's a bug in the script because when you try to run it you get:

Traceback (most recent call last):
  File "scripts/instantiate-code-fonts.py", line 33, in <module>
    fontPath = sys.argv[2]
IndexError: list index out of range

And it all seems to be related to this line introduced in the latest commit: https://github.com/arrowtype/recursive-code-config/blob/main/scripts/instantiate-code-fonts.py#L33

EDIT: There also seems to be an issue with the line endings of scripts/build-all.sh because if you try to run it as-is in linux you get:

scripts/build-all.sh: line 2: $'\r': command not found
scripts/build-all.sh: line 4: $'\r': command not found
: invalid optionl.sh: line 5: set: -
set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...]
scripts/build-all.sh: line 6: $'\r': command not found
scripts/build-all.sh: line 23: syntax error near unexpected token `$'do\r''
'cripts/build-all.sh: line 23: `for config in $configs; do

This gets fixed by changing the line endings from CRLF to simply LF

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions