Docker Installation failing due to change in repo structure

Hi , I have been using “curl -fsSL” 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 (IP:
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.