bash:/build.sh:/bin/bash^M:bad interpreter:No such file or directory報錯解決方法

原因:build.sh文件格式爲dos格式導致
解決方法:

1.  vi build.sh
2.  :set ff
3.  :set fileformat=unix
4.  :wq
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章