本机 core.autocrlf=true,重新 checkout 会把 scripts/*.sh 变成 CRLF; 这些脚本要 adb push 到 Android 上执行,CRLF 会让 shebang 变成 "#!/system/bin/sh\r" 而报 not found,因此固定为 LF。
4 lines
166 B
Plaintext
4 lines
166 B
Plaintext
# Android/设备端脚本必须以 LF 落地:
|
||
# CRLF 会让 shebang 变成 "#!/system/bin/sh\r",adb push 到平板后执行即报 "not found"。
|
||
*.sh text eol=lf
|