Shell脚本 (opens new window) 在 Windows电脑无法执行。
解决方法如下:
- 可以安装 cygwin (opens new window)。
Cygwin是一个在windows平台上运行的类UNIX模拟环境
- 安装 Git (opens new window)
参考自:how-to-run-sh-on-windows-command-prompt (opens new window)
为了能在Visual Code (opens new window)软件中直接使用Git Bash终端,所以将Git Bash终端设置为Visual Code的默认终端。
PS: 如需切换终端: