code fixing

This commit is contained in:
Tobias Powalowski 2022-10-02 18:31:58 +02:00
parent b183221830
commit 4bf9840c42

View file

@ -19,9 +19,9 @@ _update_pacman_chroot() {
# update pacman chroot # update pacman chroot
cd "${_ISO_HOME}" || exit 1 cd "${_ISO_HOME}" || exit 1
[[ -d "${_ARCH_DIR}" ]] || mkdir "${_ARCH_DIR}" [[ -d "${_ARCH_DIR}" ]] || mkdir "${_ARCH_DIR}"
echo "Downloading archlinuxarm pacman aarch64 chroot..." echo "Downloading pacman ${_ARCH} chroot..."
[[ -f pacman-aarch64-chroot-latest.tar.zst ]] && rm pacman-aarch64-chroot-latest.tar.zst{,.sig} 2>/dev/null [[ -f pacman-${_ARCH}-chroot-latest.tar.zst ]] && rm pacman-${_ARCH}-chroot-latest.tar.zst{,.sig} 2>/dev/null
wget ${_ARCHBOOT_CHROOT_PUBLIC}/${_PACMAN_CHROOT}{,.sig} >/dev/null 2>&1 wget ${_ARCH_CHROOT_PUBLIC}/${_PACMAN_CHROOT}{,.sig} >/dev/null 2>&1
# verify download # verify download
sudo -u "${_USER}" gpg --verify "${_PACMAN_CHROOT}.sig" >/dev/null 2>&1 || exit 1 sudo -u "${_USER}" gpg --verify "${_PACMAN_CHROOT}.sig" >/dev/null 2>&1 || exit 1
bsdtar -C "${_ARCH_DIR}" -xf "${_PACMAN_CHROOT}" >/dev/null 2>&1 bsdtar -C "${_ARCH_DIR}" -xf "${_PACMAN_CHROOT}" >/dev/null 2>&1