Skip to content

deploy in wsl2 fails with error gpt-rag-ui: deploy script failed with exit code 2 #451

@chrey-gh

Description

@chrey-gh

when looking into the deployment log file, you find:

scripts/deploy.sh: line 5: $'\r': command not found
: invalid option namene 6: set: pipefail

this is most likely due to the fact the the line endings are windows and not unix (cr+lf instead of lf)

check by running git ls-files --eol:
i/crlf w/crlf attr/ deploy.ps1
i/crlf w/crlf attr/ deploy.sh
i/crlf w/crlf attr/ preProvision.ps1
i/crlf w/crlf attr/ preProvision.sh

and sure enough deploy.sh and preProvision.sh are with crlf (windows) and not lf (linux)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions