Merge pull request #754 from KernelGhost/main

Add .gitattributes + Fix encodings
This commit is contained in:
Oskar Manhart
2025-09-20 10:43:27 +02:00
committed by GitHub
3 changed files with 8 additions and 1 deletions

4
.gitattributes vendored Normal file
View File

@@ -0,0 +1,4 @@
# Ensure Windows-friendly line endings and encoding for batch and registry files
*.bat text eol=crlf
*.cmd text eol=crlf
*.reg text eol=crlf working-tree-encoding=UTF-16LE-BOM

View File

@@ -8,7 +8,9 @@ repos:
args: [ "775" ]
files: (\.sh|winapps)$
- id: forbid-crlf
exclude: '\.(bat|cmd|reg)$'
- id: remove-crlf
exclude: '\.(bat|cmd|reg)$'
- id: forbid-tabs
- id: remove-tabs
args: [ --whitespaces-count, "4" ]
@@ -32,6 +34,7 @@ repos:
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
exclude: '\.(bat|cmd|reg)$'
- id: pretty-format-json
args: [ "--autofix", "--no-sort-keys" ]
- id: sort-simple-yaml

View File

@@ -40,7 +40,7 @@ if %ERRORLEVEL% equ 0 (
echo [SUCCESS] Firewall changes applied successfully.
) else (
echo [ERROR] Failed to apply firewall changes.
echo Please manually enable Remote Desktop via 'Settings System Remote Desktop'.
echo Please manually enable Remote Desktop via 'Settings --> System --> Remote Desktop'.
)
)