blob/download: don't use bad character in printf

This fixes errors when running that script.
fsdg20230625
Leah Rowe 2023-04-10 06:50:33 +01:00
parent 62cf993904
commit 65d7e7c1dd
1 changed files with 7 additions and 7 deletions

View File

@ -109,7 +109,7 @@ Download_needed(){
} }
Download_me() { Download_me() {
printf "Downloading neutered ME for board: `%s`\n" ${board} printf "Downloading neutered ME for board: %s\n" ${board}
Fetch_update || return 1 Fetch_update || return 1
Extract_me || return 1 Extract_me || return 1
@ -118,10 +118,10 @@ Download_me() {
} }
Fetch_update() { Fetch_update() {
printf "Fetching vendor update for board: `%s`\n" ${board} printf "Fetching vendor update for board: %s\n" ${board}
if [ -z "${dl_url+x}" ]; then if [ -z "${dl_url+x}" ]; then
printf "No vendor update specified for board: `%s`\n" ${board} printf "No vendor update specified for board: %s\n" ${board}
return 1 return 1
fi fi
@ -129,18 +129,18 @@ Fetch_update() {
curl ${dl_url} > ${dl_path} || curl ${dl_url_bkup} > ${dl_path} curl ${dl_url} > ${dl_path} || curl ${dl_url_bkup} > ${dl_path}
Vendor_checksum ${dl_path} || Fail \ Vendor_checksum ${dl_path} || Fail \
"Cannot guarantee intergity of vendor update for board: `${board}`" "Cannot guarantee intergity of vendor update for board: ${board}"
return 0 return 0
} }
Vendor_checksum() { Vendor_checksum() {
if [ ! -f "${dl_path}" ]; then if [ ! -f "${dl_path}" ]; then
printf "Vendor update not found on disk for board: `%s`\n" ${board} printf "Vendor update not found on disk for board: %s\n" ${board}
return 1 return 1
fi fi
if [ "$(sha1sum ${dl_path} | awk '{print $1}')" != "${dl_hash}" ]; then if [ "$(sha1sum ${dl_path} | awk '{print $1}')" != "${dl_hash}" ]; then
printf "Bad checksum on vendor update for board: `%s`\n" ${board} printf "Bad checksum on vendor update for board: %s\n" ${board}
rm ${dl_path} rm ${dl_path}
return 1 return 1
fi fi
@ -216,7 +216,7 @@ Bruteforce_extract_me() {
done done
) )
if [ ! -f "${_me_destination}" ]; then if [ ! -f "${_me_destination}" ]; then
printf "me.bin not found in vendor update for board: `%s`\n" ${board} printf "me.bin not found in vendor update for board: %s\n" ${board}
return 1 return 1
else else
return 0 return 0