diff --git a/usr/lib/archboot/container.sh b/usr/lib/archboot/container.sh index 536410b7a..6caad6f29 100644 --- a/usr/lib/archboot/container.sh +++ b/usr/lib/archboot/container.sh @@ -43,7 +43,8 @@ _clean_cache() { _pacman_chroot() { if ! [[ -f ${3} && -f ${3}.sig ]]; then echo "Downloading ${3}..." - ${_DLPROG} -O "${2}"/"${3}"{,.sig} + ${_DLPROG} -O "${2}"/"${3}" + ${_DLPROG} -O "${2}"/"${3}".sig else echo "Using local ${3}..." fi diff --git a/usr/lib/archboot/server.sh b/usr/lib/archboot/server.sh index 4545f30ea..1e46ef693 100644 --- a/usr/lib/archboot/server.sh +++ b/usr/lib/archboot/server.sh @@ -22,7 +22,8 @@ _update_pacman_chroot() { [[ -d "${_ARCH_DIR}" ]] || mkdir "${_ARCH_DIR}" echo "Downloading pacman ${_ARCH} chroot..." [[ -f pacman-${_ARCH}-chroot-latest.tar.zst ]] && rm pacman-"${_ARCH}"-chroot-latest.tar.zst{,.sig} 2>"${_NO_LOG}" - ${_DLPROG} -O "${_ARCH_CHROOT_PUBLIC}"/"${_PACMAN_CHROOT}"{,.sig} + ${_DLPROG} -O "${_ARCH_CHROOT_PUBLIC}"/"${_PACMAN_CHROOT}" + ${_DLPROG} -O "${_ARCH_CHROOT_PUBLIC}"/"${_PACMAN_CHROOT}".sig # verify download #shellcheck disable=SC2024 sudo -u "${_USER}" gpg --verify "${_PACMAN_CHROOT}.sig" &>"${_NO_LOG}" || exit 1