Skip to content

Commit 7591764

Browse files
author
hastmu
committed
fix some shellcheck topics
1 parent 9372d75 commit 7591764

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.include.build.deb.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/bash
12

23
declare -A DEBIAN
34

@@ -16,7 +17,7 @@ function gen_control_file() {
1617
local item=""
1718
mkdir -p "${DPKG_BUILD_ROOT}/DEBIAN"
1819
touch "${DPKG_BUILD_ROOT}/DEBIAN/control"
19-
for item in ${!DEBIAN[@]}
20+
for item in "${!DEBIAN[@]}"
2021
do
2122
echo "${item}: ${DEBIAN[${item}]}" >> "${DPKG_BUILD_ROOT}/DEBIAN/control"
2223
done
@@ -33,7 +34,9 @@ function gen_rootfs() {
3334
cp -av apt-proxy-detect.sh "${DPKG_BUILD_ROOT}/usr/local/bin/."
3435

3536
# create files
37+
# shellcheck disable=SC2140
3638
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
3740
echo "Acquire::https::ProxyAutoDetect \""/usr/local/bin/apt-proxy-detect.sh"\";" >> "${DPKG_BUILD_ROOT}/etc/apt/apt.conf.d/30apt-proxy-detect.conf"
3841

3942
# set permissions

0 commit comments

Comments
 (0)