forked from Bitmessage/sysdeploy
Remove problematic whitespace test from IPXE download verification
This commit is contained in:
parent
964f047c1d
commit
4b3d872bb2
4
ipxe.inc
4
ipxe.inc
|
@ -18,12 +18,12 @@ function download_and_verify_ipxe()
|
|||
lkrn_url=$(echo ${release_info} | jq '.[0].assets[] | select(.name=="ipxe.lkrn")' | jq -r .browser_download_url | tr -d '\n')
|
||||
shasums_url=$(echo ${release_info} | jq '.[0].assets[] | select(.name=="SHA256SUMS")' | jq -r .browser_download_url | tr -d '\n')
|
||||
|
||||
if [[ -z $lkrn_url ]] || [[ $lkrn_url = *[^[:space:]]* ]]; then
|
||||
if [[ -z $lkrn_url ]]; then
|
||||
echo "download failed" > "$ipxe_path"
|
||||
else
|
||||
wget "${lkrn_url}" -O "$ipxe_path" || echo "download failed" > "$ipxe_path"
|
||||
fi
|
||||
if [[ -z $shasums_url ]] || [[ $shasums_url = *[^[:space:]]* ]]; then
|
||||
if [[ -z $shasums_url ]]; then
|
||||
echo "z ipxe.lkrn" > "${ipxe_path}.sha256sums"
|
||||
else
|
||||
wget "${shasums_url}" -O "${ipxe_path}.sha256sums" || echo "z ipxe.lkrn" > "${ipxe_path}.sha256sums"
|
||||
|
|
Loading…
Reference in New Issue