There have been issues with the Privoxy proxy server.
It seems that when using the script, there’s an error when trying to make a request to https://hub.docker.com/v2/repositories/onlyoffice/documentserver/tags/ and it can’t continue executing the rest of the script.
As Touma mentioned in a similar topic, configuring the system proxy helped him.