Closed dragon-dxw closed 3 years ago
Interesting. This is pulled verbatim from Homebrew docs:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Ran the command locally and it behaves as expected.
But yes. I can reproduce when running the install script.
it looks like "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" is returning the command to bash to the console rather than to bash itself.
But if I copy the line to use wc instead of bash, that fails (with a zero length file after pressing Ctrl-D) and the bash line succeeds.
run wc "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" run arch -arm64e /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
(at least until a similar problem happens later on to install homebrew)