Add full project files
This commit is contained in:
8
scripts/fix-crlf.sh
Normal file
8
scripts/fix-crlf.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
# Fix Windows line endings (CRLF -> LF) after FTP upload
|
||||
# Run once: bash fix-crlf.sh
|
||||
|
||||
DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
find "$DIR" -type f \( -name "*.sh" -o -name "*.conf" -o -name "db.*" -o -name "*.snippet" \) -exec sed -i 's/\r$//' {} \;
|
||||
chmod +x "$DIR/server-setup.sh" "$DIR/cdn-ssl.sh" "$DIR/fix-crlf.sh" 2>/dev/null || true
|
||||
echo "Fixed line endings in $DIR"
|
||||
Reference in New Issue
Block a user