envkernel.sh doesn't run properly when the current directory contains a space
After cloning linux-next, as part of the mainlining process, I tried a test run on envkernel.sh with the output:
bash: /home/lofenyy/Root/Cabinet/Projects/Phone: No such file or directory See also: https://postmarketos.org/troubleshooting
I believe this is caused by the fact that the directory that I ran the script within contains spaces, making the script mistaken a single argument as several arguments, since command line arguments are often separated by spaces. This can often be fixed by adding quotes around variables that contain file or directory locations.
The file path that I ran the script within was: "/home/lofenyy/Root/Cabinet/Projects/Phone Liberation/Samsung Galaxy Ace II x/Postmarket OS/Kernel/Mainlining/linux"
And the file was located within: "/home/lofenyy/Root/Cabinet/Projects/Phone Liberation/Samsung Galaxy Ace II x/Postmarket OS/Kernel/Mainlining/pmbootstrap/helpers"
I could be wrong though. However, after renaming all my directories to have - instead of spaces, the script now works.