but if EmulationStation development is still hot
Not so much these days.
The script could probably be simplified, since there is branch support in RetroPie-Setup scriptmodules directly and RetroPie-Setup automatically checks for new changes to the branches (letting you know if you should update from source or have the latest source version).
P.S. Happy New Year !