diff options
author | crupest <crupest@outlook.com> | 2023-11-13 13:46:35 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2023-11-13 13:47:29 +0800 |
commit | e8b8f2e047c8a33e7dd045f1bdaccc9b27e073ea (patch) | |
tree | 2d186fe0c334ebd7d4e35e2a3983e60ffc53d375 /docker/debian-dev/bootstrap/apt-source/setup.bash | |
parent | ae2797f39d95a4c24c2adb6465cb947e4b5e28ed (diff) | |
download | crupest-e8b8f2e047c8a33e7dd045f1bdaccc9b27e073ea.tar.gz crupest-e8b8f2e047c8a33e7dd045f1bdaccc9b27e073ea.tar.bz2 crupest-e8b8f2e047c8a33e7dd045f1bdaccc9b27e073ea.zip |
(docker:debian-dev) Refactor sources management. Improve build scripts.
Diffstat (limited to 'docker/debian-dev/bootstrap/apt-source/setup.bash')
-rwxr-xr-x | docker/debian-dev/bootstrap/apt-source/setup.bash | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docker/debian-dev/bootstrap/apt-source/setup.bash b/docker/debian-dev/bootstrap/apt-source/setup.bash new file mode 100755 index 0000000..9f74cb6 --- /dev/null +++ b/docker/debian-dev/bootstrap/apt-source/setup.bash @@ -0,0 +1,12 @@ +#! /usr/bin/env bash + +set -e + +dir=$(dirname $0) + +if [[ -n $IN_CHINA ]]; then + "$dir/replace-domain.bash" $(cat "$dir/china-source.txt") +fi + +"$dir/replace-http.bash" + |