Neither the command on the page, nor the script it downloads, use sudo (or su for that matter).
Just invoking 'sh' really should not give you a root shell under normal circumstances.
You can try running 'echo "whoami" | sh | grep root' to verify this yourself.