shell脚本报错syntax error: unexpected end of fileshell脚本报错syntax error: unexpected end of file问题产生过程:排查原因:解决思路:解决方案:shell脚本报错syntax error: unexpected end of file问题产生过程:我在windows新建了一个shell脚本,然后通过git bash命令窗口执行,没有问题于是我传到linux服务器上,想运行结果提示错误syntax error: unexp