It could just as well still remain a one-liner. Every system Homebrew is installed on has Bash installed (not the latest, but still).
Instead of
> /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/in...
It could become
> curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/in... | bash
With the install script containing a payload containing the current Ruby script plus a Ruby interpreter. Still a "one liner".
Ironically, they are also moving from bash to zsh for default shell. Again not an unsurmontable challenge (just make sure the bang is correct in your scripts, bash will likely still be around somewhere in macOS for the foreseeable future) but another little hurdle to mind.
Personally I try to use #!/bin/sh as much as possible, and Fish as my default shell.