diff options
author | Leah Rowe <leah@libreboot.org> | 2023-09-28 00:46:04 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-09-28 00:46:04 +0100 |
commit | 781d0a80913535b18c44a1919b6bf7e2718a4d72 (patch) | |
tree | 1d29f206c4160387e04044f5577fcfe55485d1d4 /script | |
parent | 9aef57dfb760bb58e29c8febdac4fa550ab76cf1 (diff) |
blobs/download: remove unnecessary error pipes
the called functions directly call err() under fault condition,
so this additional handling is redundant.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script')
-rwxr-xr-x | script/update/blobs/download | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/script/update/blobs/download b/script/update/blobs/download index 5276d763..c90a1ce4 100755 --- a/script/update/blobs/download +++ b/script/update/blobs/download @@ -86,8 +86,8 @@ download_blob_intel_me() { printf "Downloading neutered ME for board: %s\n" "${board}" - fetch_update "${DL_url}" "${DL_url_bkup}" "${DL_hash}" || return 1 - extract_blob_intel_me || return 1 + fetch_update "${DL_url}" "${DL_url_bkup}" "${DL_hash}" + extract_blob_intel_me } extract_blob_intel_me() @@ -160,8 +160,8 @@ download_ec() { printf "Downloading KBC1126 EC firmware for HP laptop\n" - fetch_update "${EC_url}" "${EC_url_bkup}" "${EC_hash}" || return 1 - extract_blob_kbc1126_ec || return 1 + fetch_update "${EC_url}" "${EC_url_bkup}" "${EC_hash}" + extract_blob_kbc1126_ec } extract_blob_kbc1126_ec() @@ -206,8 +206,8 @@ download_e6400vga() printf "Downloading Nvidia VGA ROM for Dell Latitude E6400\n" fetch_update "${E6400_VGA_DL_url}" "${E6400_VGA_DL_url_bkup}" \ - "${E6400_VGA_DL_hash}" || return 1 - extract_e6400vga || return 1 + "${E6400_VGA_DL_hash}" + extract_e6400vga } extract_e6400vga() @@ -243,8 +243,8 @@ download_sch5545ec() printf "Downloading SMSC SCH5545 Environment Controller firmware\n" fetch_update "${SCH5545EC_DL_url}" "${SCH5545EC_DL_url_bkup}" \ - "${SCH5545EC_DL_hash}" || return 1 - extract_sch5545ec || return 1 + "${SCH5545EC_DL_hash}" + extract_sch5545ec } # TODO: this code is cancer. hardcoded is bad, and stupid. |