@@ -196,8 +196,8 @@ _install_apt() {
196196 fi
197197
198198 # Add repo signign key
199- wget -qO- https://download.opensuse.org/repositories/${OBS_PROJECT} /${DISTRO_REPO} /Release.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/devel_languages_crystal.gpg > /dev/null
200- echo " deb http://download.opensuse.org/repositories/${OBS_PROJECT} /${DISTRO_REPO} / /" | tee /etc/apt/sources.list.d/crystal.list
199+ wget -qO- https://download.opensuse.org/repositories/${OBS_PROJECT//:/: \/ } /${DISTRO_REPO} /Release.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/devel_languages_crystal.gpg > /dev/null
200+ echo " deb http://download.opensuse.org/repositories/${OBS_PROJECT//:/: \/ } /${DISTRO_REPO} / /" | tee /etc/apt/sources.list.d/crystal.list
201201 apt-get update
202202
203203 if [[ " $CRYSTAL_VERSION " == " latest" ]]; then
@@ -218,9 +218,9 @@ _install_yum() {
218218[crystal]
219219name=Crystal (${DISTRO_REPO} )
220220type=rpm-md
221- baseurl=https://download.opensuse.org/repositories/${OBS_PROJECT} /${DISTRO_REPO} /
221+ baseurl=https://download.opensuse.org/repositories/${OBS_PROJECT//:/: \/ } /${DISTRO_REPO} /
222222gpgcheck=1
223- gpgkey=https://download.opensuse.org/repositories/${OBS_PROJECT} /${DISTRO_REPO} /repodata/repomd.xml.key
223+ gpgkey=https://download.opensuse.org/repositories/${OBS_PROJECT//:/: \/ } /${DISTRO_REPO} /repodata/repomd.xml.key
224224enabled=1
225225EOF
226226
234234_install_dnf () {
235235 _install_rpm_key
236236
237- dnf config-manager --add-repo https://download.opensuse.org/repositories/${OBS_PROJECT} /$DISTRO_REPO /${OBS_PROJECT} .repo
237+ dnf config-manager --add-repo https://download.opensuse.org/repositories/${OBS_PROJECT//:/: \/ } /$DISTRO_REPO /${OBS_PROJECT} .repo
238238
239239 if [[ " $CRYSTAL_VERSION " == " latest" ]]; then
240240 dnf install -y crystal
@@ -250,7 +250,7 @@ _install_zypper() {
250250 fi
251251
252252 _install_rpm_key
253- zypper --non-interactive addrepo https://download.opensuse.org/repositories/${OBS_PROJECT} /$DISTRO_REPO /${OBS_PROJECT} .repo
253+ zypper --non-interactive addrepo https://download.opensuse.org/repositories/${OBS_PROJECT//:/: \/ } /$DISTRO_REPO /${OBS_PROJECT} .repo
254254 zypper --non-interactive refresh
255255
256256 if [[ " $CRYSTAL_VERSION " == " latest" ]]; then
0 commit comments