FYI I spent a bunch of time thinking “cat the script” code snippet was wrong. Because running cat on the script dumps gibberish to my screen, and because my executable wasn’t a .phar, I figured the instructions were malformed and they were trying to tell me how to compile the script into a .phar file and adding some bash to the top.
It was totally unclear that
cat was being used like
less and that the goal was simply to get the path to the executable.
I have 15 tabs open and an hour of time invested in figuring out the instructions and I hope my rewrite saves future devs their time.