The latter is now the preferred URL for visiting cmake.org with a browser. Convert using the shell code: git ls-files -z | xargs -0 sed -i 's|http://www\.cmake|https://cmake|g'
Also adding overwrite option (-ov) in case multiple temporary dmg files are being created. Fixes bug #14536.