summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-08-31 17:16:54 +0100
committerLeah Rowe <leah@libreboot.org>2023-08-31 17:16:54 +0100
commitfbda0f04dbc53e7c98eba66418de1ff459484685 (patch)
tree203c35da35680396ea937f1a5aec14a8d757fb37
parentb2bad5a030377c8dc0baecf74545b80676f684dc (diff)
re-add /dev/null redirect on . ${1}
the error messages that it shows are benign, but users see them and worry that something went wrong this patch reduces the number of people asking pointless questions on irc Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xscript/update/blobs/download2
-rwxr-xr-xscript/update/blobs/extract2
-rwxr-xr-xscript/update/blobs/inject2
3 files changed, 3 insertions, 3 deletions
diff --git a/script/update/blobs/download b/script/update/blobs/download
index 3df460d4..1d18cf7e 100755
--- a/script/update/blobs/download
+++ b/script/update/blobs/download
@@ -79,7 +79,7 @@ main()
detect_firmware()
{
set -- "${boarddir}/config/"*
- . "${1}"
+ . "${1}" 2>/dev/null
. "${boarddir}/target.cfg"
[ "${CONFIG_HAVE_MRC}" = "y" ] && needs="${needs} MRC"
diff --git a/script/update/blobs/extract b/script/update/blobs/extract
index fa76dfb5..c62700f2 100755
--- a/script/update/blobs/extract
+++ b/script/update/blobs/extract
@@ -72,7 +72,7 @@ extract_blobs()
printf "extracting blobs for %s from %s\n" ${board} ${vendor_rom}
set -- "${boarddir}/config/"*
- . "${1}"
+ . "${1}" 2>/dev/null
. "${boarddir}/target.cfg"
[ "$CONFIG_HAVE_MRC" != "y" ] || \
diff --git a/script/update/blobs/inject b/script/update/blobs/inject
index bc6b55c9..08bbf41a 100755
--- a/script/update/blobs/inject
+++ b/script/update/blobs/inject
@@ -188,7 +188,7 @@ patch_rom()
err "patch_rom: file missing: ${boarddir}/target.cfg"
set -- "${boarddir}/config/"*
- . "${1}"
+ . "${1}" 2>/dev/null
. "${boarddir}/target.cfg"
[ "$CONFIG_HAVE_MRC" = "y" ] && \