Skip to content

Commit 27d230f

Browse files
committed
[fix] : fix for shellcheck
1 parent d8e1de6 commit 27d230f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tools/docker-build.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,14 @@ done
106106
# End parse options
107107

108108
DOCKER_RUN_OPTS=()
109-
DOCKER_RUN_OPTS+=(-v ${DIST_DIR}:/alterlinux/out)
110-
DOCKER_RUN_OPTS+=(-v /usr/lib/modules:/usr/lib/modules:ro)
109+
DOCKER_RUN_OPTS+=(-v "${DIST_DIR}:/alterlinux/out")
110+
DOCKER_RUN_OPTS+=(-v "/usr/lib/modules:/usr/lib/modules:ro")
111111
[[ "x${NO_SHARE_PKG}" != "xTrue" ]] && {
112-
DOCKER_RUN_OPTS+=(-v ${SHARE_PKG_DIR}:/var/cache/pacman/pkg)
113-
DOCKER_RUN_OPTS+=(-v ${SHARE_DB_DIR}:/var/lib/pacman/sync)
112+
DOCKER_RUN_OPTS+=(-v "${SHARE_PKG_DIR}:/var/cache/pacman/pkg")
113+
DOCKER_RUN_OPTS+=(-v "${SHARE_DB_DIR}:/var/lib/pacman/sync")
114114
}
115115

116116
tty >/dev/null 2>&1 && OPT_TTY="-it" || OPT_TTY=""
117117

118-
docker build ${DOCKER_BUILD_OPTS[@]} -t alterlinux-build:latest ${script_path}
119-
exec docker run --rm ${OPT_TTY} --privileged -e _DOCKER=true ${DOCKER_RUN_OPTS[@]} alterlinux-build ${BUILD_SCRIPT_OPTS[@]}
118+
docker build "${DOCKER_BUILD_OPTS[@]}" -t alterlinux-build:latest ${script_path}
119+
exec docker run --rm ${OPT_TTY} --privileged -e _DOCKER=true "${DOCKER_RUN_OPTS[@]}" alterlinux-build "${BUILD_SCRIPT_OPTS[@]}"

0 commit comments

Comments
 (0)