16 lines
390 B
Bash
Executable File
16 lines
390 B
Bash
Executable File
#!/bin/bash
|
|
# fix_line_endings.sh - Script to fix line endings in shell scripts
|
|
|
|
echo "🔧 Fixing line endings in shell scripts..."
|
|
|
|
# Fix shell scripts
|
|
for file in $(find . -name "*.sh"); do
|
|
echo "📄 Processing $file..."
|
|
tr -d '\r' < "$file" > "$file.fixed"
|
|
mv "$file.fixed" "$file"
|
|
chmod +x "$file"
|
|
echo "✅ Fixed $file"
|
|
done
|
|
|
|
echo "🚀 All shell scripts fixed!"
|