fixed repository protocol replacement

This commit is contained in:
Daniel Sommer 2021-10-15 15:59:47 +02:00
parent 937b3e88c5
commit 61ae74930b

View file

@ -26,7 +26,7 @@ if [[ ! "$password" ]]; then
[[ "$password_confirmation" != "$password" ]] && printf "|> error: passwords do not match\n" && exit 1
fi
[[ "$repository_protocol" ]] && printf "|> setting protocol for all repositories to '"$repository_protocol"'\n" && sed -i "s/http/$repository_protocol/g" "/etc/apk/repositories"
[[ "$repository_protocol" ]] && printf "|> setting protocol for all repositories to '"$repository_protocol"'\n" && sed -i "s/http:/$repository_protocol:/g" "/etc/apk/repositories"
[[ "$repository_version" ]] && printf "|> setting version for all repositories to '"$repository_version"'\n" && sed -i "s/\/v.*\//\/$repository_version\//g" "/etc/apk/repositories"
printf "|> updating packages...\n"