summaryrefslogtreecommitdiff
path: root/script/update
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-09-30 20:04:02 +0100
committerLeah Rowe <leah@libreboot.org>2023-09-30 20:06:29 +0100
commit26fc3f13254e38ddd6903e7e18e0945b4e6fe63d (patch)
tree0baf792f50daea402a9a35dec25bb2aa6e89ac3d /script/update
parent0a0defd3256ff5e29e3b4d129a04fb7546bc31ac (diff)
general code formatting cleanup in shell scripts
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/update')
-rwxr-xr-xscript/update/blobs/download7
-rwxr-xr-xscript/update/blobs/inject5
2 files changed, 5 insertions, 7 deletions
diff --git a/script/update/blobs/download b/script/update/blobs/download
index 51747824..9e017cc4 100755
--- a/script/update/blobs/download
+++ b/script/update/blobs/download
@@ -74,10 +74,9 @@ download_blobs()
fetch "e6400vga" "${E6400_VGA_DL_url}" \
"${E6400_VGA_DL_url_bkup}" "${E6400_VGA_DL_hash}" \
"${CONFIG_VGA_BIOS_FILE}"
- if [ ! -z "${CONFIG_HAVE_MRC}" ]; then
- fetch "mrc" "${MRC_url}" "${MRC_url_bkup}" "${MRC_hash}" \
- "${CONFIG_MRC_FILE}"
- fi
+ [ -z "${CONFIG_HAVE_MRC}" ] && return 0
+ fetch "mrc" "${MRC_url}" "${MRC_url_bkup}" "${MRC_hash}" \
+ "${CONFIG_MRC_FILE}"
}
extract_intel_me()
diff --git a/script/update/blobs/inject b/script/update/blobs/inject
index 654af5d3..5e75d6c4 100755
--- a/script/update/blobs/inject
+++ b/script/update/blobs/inject
@@ -53,9 +53,8 @@ check_board()
fi
boarddir="${cbcfgsdir}/${board}"
- if [ ! -d "${boarddir}" ]; then
- err "check_board: board ${board} not found"
- fi
+ [ -d "${boarddir}" ] && return 0
+ err "check_board: board ${board} not found"
}
check_release()