aboutsummaryrefslogtreecommitdiff
path: root/docker/debian-dev/bootstrap/apt-source/setup.bash
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2024-02-09 22:24:36 +0800
committercrupest <crupest@outlook.com>2024-02-09 22:24:36 +0800
commit07ae0f955721866287bf56de478164cc83aaf9e1 (patch)
treec0e69ae84d4dc2eaea1daf580c1c994547cfcc1d /docker/debian-dev/bootstrap/apt-source/setup.bash
parent7e2870588fb804aa58dcea88f8b8c3d070fea9dd (diff)
downloadcrupest-07ae0f955721866287bf56de478164cc83aaf9e1.tar.gz
crupest-07ae0f955721866287bf56de478164cc83aaf9e1.tar.bz2
crupest-07ae0f955721866287bf56de478164cc83aaf9e1.zip
docker(debian-dev): use an ordinary user rather than root.
Diffstat (limited to 'docker/debian-dev/bootstrap/apt-source/setup.bash')
-rwxr-xr-xdocker/debian-dev/bootstrap/apt-source/setup.bash5
1 files changed, 2 insertions, 3 deletions
diff --git a/docker/debian-dev/bootstrap/apt-source/setup.bash b/docker/debian-dev/bootstrap/apt-source/setup.bash
index 36065f6..60e635b 100755
--- a/docker/debian-dev/bootstrap/apt-source/setup.bash
+++ b/docker/debian-dev/bootstrap/apt-source/setup.bash
@@ -2,12 +2,11 @@
set -e
-dir=$(dirname $0)
+dir=$(dirname "$0")
if [[ -n $IN_CHINA ]]; then
- "$dir/replace-domain.bash" $(cat "$dir/china-source.txt")
+ "$dir/replace-domain.bash" "$(cat "$dir/china-source.txt")"
fi
"$dir/install-apt-https.bash"
"$dir/replace-http.bash"
-