lib.sh: fix bad eval writing resized file

x_ cannot be used, where output is redirectod to a file;
only the conventional piping can be used.

same as the last change. this and the other fix were caught
during testing.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-04-13 04:01:45 +01:00
parent eb9e5d2d5d
commit 738d4bb6b6
+2 -1
View File
@@ -525,7 +525,8 @@ process_release_rom()
[ "${_xromname#"$vfix"}" != "$_xromname" ]; then
_xromnew="${_xrom%/*}/${_xromname#"$vfix"}"
x_ stat -c '%s' "$_xrom" > "tmp/rom.size"
stat -c '%s' "$_xrom" > "tmp/rom.size" || \
$err "$_xrom: Can't resize '$_xrom' (out: tmp/rom.size)"
read -r xromsize < "tmp/rom.size" || \
$err "$_xrom: Can't read rom size. $dontflash"