/Bin/bash ^ m: Bad Interpreter: no such file or directory
In the beginning, I had insufficient permissions and could not execute them. Then I changed the permissions and kept reporting the above problems.
I remember that a few months ago, I encountered a similar problem. At that time, I was compiling the android framework and then opening the error. XML file, you can see a lot of ^ m identifiers directly. As the compilation staff helped solve the problem, they didn't ask why,
Once again today, I searched the internet for the reason.
One of the reasons for the above error is that the script file is in DOS format, that is, the end of each row is identified by \ r \ n. Use the vim editor to open the script and run:
: Set ff?
You can see the DoS or UNIX text. Use set FF = UNIX to force it to the Unix format, and then save the disk to exit.
There are also many other methods on the Internet, such as executing the dos2unix command to convert the code. The command is: # dos2unix full_build.sh, but I didn't have the dos2unix installation package, So I skipped it.