chore: 新增 .gitattributes(*.sh 强制 LF)
本机 core.autocrlf=true,重新 checkout 会把 scripts/*.sh 变成 CRLF; 这些脚本要 adb push 到 Android 上执行,CRLF 会让 shebang 变成 "#!/system/bin/sh\r" 而报 not found,因此固定为 LF。
This commit is contained in:
parent
e7b6251613
commit
1ab8a343fd
3
.gitattributes
vendored
Normal file
3
.gitattributes
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
# Android/设备端脚本必须以 LF 落地:
|
||||
# CRLF 会让 shebang 变成 "#!/system/bin/sh\r",adb push 到平板后执行即报 "not found"。
|
||||
*.sh text eol=lf
|
||||
Loading…
x
Reference in New Issue
Block a user