We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b99e53 commit 26786d1Copy full SHA for 26786d1
bin/dos2unix.sh
@@ -0,0 +1,16 @@
1
+#!/bin/bash
2
+#
3
+# This file is part of the Zemit Framework.
4
5
+# (c) Zemit Team <[email protected]>
6
7
+# For the full copyright and license information, please view the LICENSE.txt
8
+# file that was distributed with this source code.
9
10
+BASE_DIR="${1:-./}"
11
+find "$BASE_DIR" -type f -name "*.php" | while read -r file; do
12
+ if file "$file" | grep -q "CRLF"; then
13
+ echo "Converting $file to Unix line endings..."
14
+ dos2unix "$file"
15
+ fi
16
+done
0 commit comments