aboutsummaryrefslogtreecommitdiff
path: root/docker/crupest-debian-dev/bootstrap/apt-source/get-domain.bash
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2024-08-14 00:28:12 +0800
committercrupest <crupest@outlook.com>2024-08-14 00:29:21 +0800
commit411cb6caa2fe875d1000ea3c126b15d91b142e8f (patch)
treee784861c748910439705999257dce092419aaa9d /docker/crupest-debian-dev/bootstrap/apt-source/get-domain.bash
parentad5c3b81ecf44641673245e950761fea91f8bad3 (diff)
downloadcrupest-411cb6caa2fe875d1000ea3c126b15d91b142e8f.tar.gz
crupest-411cb6caa2fe875d1000ea3c126b15d91b142e8f.tar.bz2
crupest-411cb6caa2fe875d1000ea3c126b15d91b142e8f.zip
fix(docker/debian-dev): mirror replace scripts on debian 12.
Diffstat (limited to 'docker/crupest-debian-dev/bootstrap/apt-source/get-domain.bash')
-rwxr-xr-xdocker/crupest-debian-dev/bootstrap/apt-source/get-domain.bash3
1 files changed, 2 insertions, 1 deletions
diff --git a/docker/crupest-debian-dev/bootstrap/apt-source/get-domain.bash b/docker/crupest-debian-dev/bootstrap/apt-source/get-domain.bash
index d44ea65..a24538c 100755
--- a/docker/crupest-debian-dev/bootstrap/apt-source/get-domain.bash
+++ b/docker/crupest-debian-dev/bootstrap/apt-source/get-domain.bash
@@ -2,4 +2,5 @@
set -e
-sed "s|.*https\?://\([-_.a-zA-Z0-9]\+\)/.*|\\1|;q" /etc/apt/sources.list
+grep -e 'URIs:' /etc/apt/sources.list.d/debian.sources | \
+ sed -E 's|URIs:\s*https?://([-_.a-zA-Z0-9]+)/.*|\1|;q'