Can we take a moment to ask ourselves - how the hell did piping to shell become ok? We have all kinds of method’s for deploying stuff - from the age old tarball to the new shinny flat pack. But somehow we also became ok with
Curl foo | sh
Oftentimes as root.
Switch to Linux but you have major paradigm you need to pick. Do you want your computer to be bleeding edge but it be a hobby? Or do you want slightly older and rock solid? Or do you have an enterprise support contract? You only pick Ubuntu/RHEL if you have the last one.