refactor: update opensuse to use web_pipe()

This commit is contained in:
Martin Wimpress 2024-04-19 22:13:00 +01:00 committed by Martin Wimpress
parent e726789238
commit 5eb4b39c81
1 changed files with 1 additions and 1 deletions

View File

@ -2573,7 +2573,7 @@ function get_opensuse() {
ISO="openSUSE-Leap-${RELEASE}-DVD-x86_64-Current.iso"
URL="https://download.opensuse.org/distribution/leap/${RELEASE}/iso"
fi
HASH=$(wget -q -O- "${URL}/${ISO}.sha256" |awk '{if(NR==4) print $0}'|cut_1)
HASH=$(web_pipe "${URL}/${ISO}.sha256" | awk '{if(NR==4) print $0}' | cut_1)
echo "${URL}/${ISO} ${HASH}"
}