且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

为什么我会收到&QUOT:无此类文件或目录"当试图执行一个bash脚本?

更新时间:2023-02-14 17:00:43

我已经看到,如果脚本有Windows行结尾,而不是Unix行结尾的这个错误。尝试在脚本运行 DOS2UNIX的,看看你得到同样的错误。

I have seen this error if the script has windows line endings instead of unix line endings. Try running dos2unix on the script and see if you get the same error.