fix-line-endings

Community

Automate line ending fixes for seamless script execution.

AuthorManuelKugelmann
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Resolves common script execution errors caused by inconsistent line endings (CRLF vs. LF), especially when moving files between Windows and Unix environments. This prevents frustrating "command not found" errors.

Core Features & Use Cases

  • Automatic Conversion: Converts Windows-style CRLF line endings to Unix-style LF.
  • Error Prevention: Eliminates /bin/bash: $'\r': command not found errors.
  • Use Case: Automatically clean up all shell scripts in your project before deployment to a Linux server, ensuring they run without issues.

Quick Start

Fix line endings in 'myscript.sh' and 'another_script.py'. .claude/skills/fix-line-endings/scripts/fix-line-endings.sh myscript.sh another_script.py

Dependency Matrix

Required Modules

None required

Components

scripts

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: fix-line-endings
Download link: https://github.com/ManuelKugelmann/BitBot/archive/main.zip#fix-line-endings

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository