I don't see why you always want to add the beta channel here. This would only be necessary if we are wanting an update via the beta channel. Also please stick to the coding style and don't use " but '.