This script works great on my RPi4 and makes keeping up to date with the latest features so easy.
I have tried to use it for the latest stable releases as suggested but that fails at the first step.
The stable release repositories only work if you are running Ubuntu.
I use Astroberry which works on PiOS/Debian so cant use them. It is a bit strange that it works for the nightly release though.