From 612a2c96c9b1795d3cc6cd8dc8c8f3902ccddab3 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Sat, 1 Oct 2022 15:06:42 +0200 Subject: [PATCH] shellcheck fixes --- usr/lib/archboot/container.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/usr/lib/archboot/container.sh b/usr/lib/archboot/container.sh index 4b1faec94..07d6c9db1 100644 --- a/usr/lib/archboot/container.sh +++ b/usr/lib/archboot/container.sh @@ -144,13 +144,13 @@ _umount_special() { _pacman_parameters() { if [[ "${2}" == "use_binfmt" ]]; then - _SYSTEMD="systemd-nspawn -q -D "${1}"" + _SYSTEMD="systemd-nspawn -q -D ${1}" _PACMAN="pacman" _PACMAN_CACHEDIR="" else _SYSTEMD="" - _PACMAN="pacman --root "${1}"" - _PACMAN_CACHEDIR="--cachedir "${_CACHEDIR}"" + _PACMAN="pacman --root ${1}" + _PACMAN_CACHEDIR="--cachedir ${_CACHEDIR}" fi } @@ -167,10 +167,10 @@ _install_base_packages() { } _install_archboot() { - _PACMAN_COMMON="${_ARCHBOOT} --config "${_PACMAN_CONF}" --ignore systemd-resolvconf --noconfirm" + _PACMAN_COMMON="${_ARCHBOOT} --config ${_PACMAN_CONF} --ignore systemd-resolvconf --noconfirm" _pacman_parameters "${1}" "${2}" - if [[ "${2}" ]]; then - _PACMAN_DB="--dbpath "${1}"/blankdb" + if [[ -z "${2}" ]]; then + _PACMAN_DB="--dbpath ${1}/blankdb" # riscv64 need does not support local image at the moment [[ "${_RUNNING_ARCH}" == "riscv64" ]] && _GRAPHICAL_PACKAGES="" else