File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
1
2
2
3
declare -A DEBIAN
3
4
@@ -16,7 +17,7 @@ function gen_control_file() {
16
17
local item=" "
17
18
mkdir -p " ${DPKG_BUILD_ROOT} /DEBIAN"
18
19
touch " ${DPKG_BUILD_ROOT} /DEBIAN/control"
19
- for item in ${! DEBIAN[@]}
20
+ for item in " ${! DEBIAN[@]} "
20
21
do
21
22
echo " ${item} : ${DEBIAN[${item}]} " >> " ${DPKG_BUILD_ROOT} /DEBIAN/control"
22
23
done
@@ -33,7 +34,9 @@ function gen_rootfs() {
33
34
cp -av apt-proxy-detect.sh " ${DPKG_BUILD_ROOT} /usr/local/bin/."
34
35
35
36
# create files
37
+ # shellcheck disable=SC2140
36
38
echo " Acquire::http::ProxyAutoDetect \" " /usr/local/bin/apt-proxy-detect.sh" \" ;" > " ${DPKG_BUILD_ROOT} /etc/apt/apt.conf.d/30apt-proxy-detect.conf"
39
+ # shellcheck disable=SC2140
37
40
echo " Acquire::https::ProxyAutoDetect \" " /usr/local/bin/apt-proxy-detect.sh" \" ;" >> " ${DPKG_BUILD_ROOT} /etc/apt/apt.conf.d/30apt-proxy-detect.conf"
38
41
39
42
# set permissions
You can’t perform that action at this time.
0 commit comments