Shell scripts initially in CRLF instead of LF (causing execution issues on Linux)
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
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.
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
- Dominant language
- Shell
- Stars
- 36.4k
- Forks
- 643
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
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.
More from inkonchain/node
-
How do I actually run an Ink mainnet node right now?Possibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
inkonchain/node#87 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
inkonchain/node#84 · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
inkonchain/node#79 ·
-
testOpen
Difficulty 5/5 Over a week Newbie friendliness 5/100
inkonchain/node#75 ·
-
Snapshot file link is invalidPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 42/100
inkonchain/node#68 · 2 comments · 1 reaction ·
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
mattpocock/skills#1174 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
documentation good first issue hacktoberfest
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
area/tests theme/ci-dx
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day