解决方法
用vim打开sh脚本文件, 重新设置文件的格式
:set ff 然后回车 再重新设置下文件格式:
:set ff=unix 然后保存退出
:wq! 回车
参考:https://blog.csdn.net/xiongchun11/article/details/78832947
用vim打开sh脚本文件, 重新设置文件的格式
:set ff 然后回车 再重新设置下文件格式:
:set ff=unix 然后保存退出
:wq! 回车
参考:https://blog.csdn.net/xiongchun11/article/details/78832947