update curl

This commit is contained in:
Tobias Powalowski 2023-09-04 16:13:24 +02:00
parent 1137fedb13
commit 88a94f96ff
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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