Skip to content

Line Separator in .sh file make bug #9

Description

@FulgenceWen

I saw the project run in Linux and I run the project on my CentOS7 server.
When running python prepare_mcp.py:

: No such file or directorydata/MyCode/JARVIS-1/scripts
Cloning into 'MCP-Reborn'...
remote: Enumerating objects: 275, done.
remote: Counting objects: 100% (67/67), done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 275 (delta 55), reused 51 (delta 51), pack-reused 208 (from 1)
Receiving objects: 100% (275/275), 248.08 KiB | 0 bytes/s, done.
Resolving deltas: 100% (153/153), done.
: No such file or directoryCP-Reborn
fatal: Not a git repository (or any parent up to mount point /data)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
chmod: cannot access ‘*\r’: No such file or directory
setup_mcp.sh: line 10: ./gradlew: No such file or directory

I find the problem after a long time, and finally I find the Line Separator in patch_mcp.sh and setup_mcp.sh file is "\r", however Linux use "\n", I hope you can fix this bug!(Line Separator standard in Linux is LF, which use only"\n", and Windows is CRLF, use both"\r""\n")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions