Factor out the >/dev/null cmd part to sh()
Make EOS work with multiple branches