refactor: update nixos to use web_pipe()

This commit is contained in:
Martin Wimpress 2024-04-19 22:11:21 +01:00 committed by Martin Wimpress
parent 8726bf9fad
commit 6c95750fe2
1 changed files with 1 additions and 1 deletions

View File

@ -2535,7 +2535,7 @@ function get_nixos() {
local HASH=""
local ISO="latest-nixos-${EDITION}-x86_64-linux.iso"
local URL="https://channels.nixos.org/nixos-${RELEASE}"
HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | cut_1)
HASH=$(web_pipe "${URL}/${ISO}.sha256" | cut_1)
echo "${URL}/${ISO} ${HASH}"
}