Shell scripts initially in CRLF instead of LF (causing execution issues on Linux)
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 36.5k
- Forks
- 643
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I am currently running a node using your repository, and I noticed something unexpected regarding the shell scripts (.sh files).
At first, several scripts were formatted with CRLF line endings instead of LF. This caused execution problems on my Linux environment (e.g., ^M characters and “bad interpreter” errors). Since running a node requires a Linux-based environment, I was surprised that the scripts were not already in LF format.
After converting them to LF, everything works normally.
Steps to Reproduce
-
Clone the repository on Windows
-
Open the .sh files (they appear in CRLF)
-
Try executing them on a Linux environment → execution errors
Expected Behavior
Shell scripts in repositories intended for Linux execution should use LF line endings by default.
Actual Behavior
Some .sh files were in CRLF, causing errors when running the node setup or startup scripts.
Environment
Running node on: Linux
Repo cloned initially on: Windows
Issue: CRLF line endings in shell scripts
Suggestion
Convert all .sh files in the repository to LF
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect the repository's .sh files and reproduce the reported Windows-to-Linux clone and execution path. Convert the affected scripts to LF line endings, then verify that the node setup or startup scripts execute on Linux without ^M or bad-interpreter errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, shell
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 72/100