From 61ae74930b64134f8a4fbb618b772d9e7402c811 Mon Sep 17 00:00:00 2001 From: velvettear Date: Fri, 15 Oct 2021 15:59:47 +0200 Subject: [PATCH] fixed repository protocol replacement --- alpine_install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alpine_install.sh b/alpine_install.sh index cb22dcf..10abbca 100755 --- a/alpine_install.sh +++ b/alpine_install.sh @@ -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"