#事故现场
使用WinSCP传shell脚本文件到linux,结果我电脑上的winSCP会自动将文件的换行符转为unix的LF,而同事的就不会。
#解决方法
设置WinSCP:
WinSCP Login -> Environment -> “End-of-line characters (if not indicated by server)” and the setting was “LF” or “CR/LF”
使用WinSCP传shell脚本文件到linux,结果我电脑上的winSCP会自动将文件的换行符转为unix的LF,而同事的就不会。
设置WinSCP:
WinSCP Login -> Environment -> “End-of-line characters (if not indicated by server)” and the setting was “LF” or “CR/LF”