Solve shell error: syntax error: unexpected end of file

debug shell: execution

sh -x test.sh 
test.sh vi 
: the SET fileformat = unix 
: WQ 
reason I write is to solve the problem in windows pycharm format does not conform to unix cause a syntax error

Guess you like

Origin www.cnblogs.com/SunshineKimi/p/12356264.html