Docker Installation failing due to change in repo structure

Hi , I have been using “curl -fsSL get.docker.com” in my script for installation of docker. But recently we noticed that the installation has been failing with below error.

Errors during downloading metadata for repository ‘docker-ce-stable’:
Status code: 404 for https://download.docker.com/linux/rhel/7/x86_64/stable/repodata/repomd.xml (IP: 13.225.222.25)
Error: Failed to download metadata for repo ‘docker-ce-stable’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

The repo structure had a folder named x86_64 before which is not there any more. With the change in repo structure docker script does not work any more.

Kindly update the script to be compatible with new directory structure so that we can install docker properly as we had done previously.