aboutsummaryrefslogtreecommitdiff
path: root/docker/crupest-debian-dev/bootstrap/apt-source/setup.bash
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2024-08-14 00:28:12 +0800
committercrupest <crupest@outlook.com>2024-08-14 11:28:11 +0800
commite272d8667a64852452a076d180149a975e52a109 (patch)
tree027ac0f97891993b1deac6569d7b26730378ddf6 /docker/crupest-debian-dev/bootstrap/apt-source/setup.bash
parent4ffd7559a226d74c3560d95174a5576d4ac17ef5 (diff)
downloadcrupest-e272d8667a64852452a076d180149a975e52a109.tar.gz
crupest-e272d8667a64852452a076d180149a975e52a109.tar.bz2
crupest-e272d8667a64852452a076d180149a975e52a109.zip
feat(docker/debian-dev): add more output, rename vars and fix some bugs.
Diffstat (limited to 'docker/crupest-debian-dev/bootstrap/apt-source/setup.bash')
-rwxr-xr-xdocker/crupest-debian-dev/bootstrap/apt-source/setup.bash7
1 files changed, 6 insertions, 1 deletions
diff --git a/docker/crupest-debian-dev/bootstrap/apt-source/setup.bash b/docker/crupest-debian-dev/bootstrap/apt-source/setup.bash
index 60e635b..60583d4 100755
--- a/docker/crupest-debian-dev/bootstrap/apt-source/setup.bash
+++ b/docker/crupest-debian-dev/bootstrap/apt-source/setup.bash
@@ -4,9 +4,14 @@ set -e
dir=$(dirname "$0")
-if [[ -n $IN_CHINA ]]; then
+echo "Setting up apt source..."
+
+if [[ -n $CRUPEST_DEBIAN_DEV_IN_CHINA ]]; then
+ echo "In China, using China source..."
"$dir/replace-domain.bash" "$(cat "$dir/china-source.txt")"
fi
"$dir/install-apt-https.bash"
"$dir/replace-http.bash"
+
+echo "Setting up apt source done."