mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
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:
+2
-1
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user