shellcheck fixes

This commit is contained in:
Tobias Powalowski 2023-09-04 08:59:48 +02:00
parent 7a51fa25dc
commit 16a7cea9dc
2 changed files with 2 additions and 0 deletions

View file

@ -32,6 +32,7 @@ _create_iso() {
# create container
archboot-"${_ARCH}"-create-container.sh "${_W_DIR}" -cc --install-source="${2}" || exit 1
_create_archboot_db "${_W_DIR}${_CACHEDIR}"
#shellcheck disable=SC1090
. "${_W_DIR}/etc/archboot/${_ARCH}.conf"
#shellcheck disable=SC2116,SC2046,SC2027
_KERNEL_VERSION="$(${_NSPAWN} "${_W_DIR}" /bin/bash -c "KERNEL="$(echo "${KERNEL}")";. /usr/lib/archboot/common.sh; _kver ${KERNEL}")"

View file

@ -24,6 +24,7 @@ _update_pacman_chroot() {
[[ -f pacman-${_ARCH}-chroot-latest.tar.zst ]] && rm pacman-"${_ARCH}"-chroot-latest.tar.zst{,.sig} 2>"${_NO_LOG}"
wget "${_ARCH_CHROOT_PUBLIC}"/"${_PACMAN_CHROOT}"{,.sig} &>"${_NO_LOG}"
# verify download
#shellcheck disable=SC2024
sudo -u "${_USER}" gpg --verify "${_PACMAN_CHROOT}.sig" &>"${_NO_LOG}" || exit 1
bsdtar -C "${_ARCH_DIR}" -xf "${_PACMAN_CHROOT}" &>"${_NO_LOG}"
echo "Removing installation tarball..."