debug shell:执行
sh -x test.sh
vi test.sh :set fileformat=unix :wq解决问题原因是我在windows pycharm 写的格式不符合unix导致语法错误