windows下编写shell脚本,执行后报错
原因是编码方式错误,windows写shell,在linux执行报错
syntax error: unexpected end of file
修改
vim serverDeploy.sh
:set fileformat=unix //设置编码方式
:wq
windows下编写shell脚本,执行后报错
原因是编码方式错误,windows写shell,在linux执行报错
syntax error: unexpected end of file
修改
vim serverDeploy.sh
:set fileformat=unix //设置编码方式
:wq