diff options
author | Leah Rowe <leah@libreboot.org> | 2025-04-13 04:01:45 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-04-13 04:02:34 +0100 |
commit | 738d4bb6b6d090d4e33b75a3ac14e655b9d20cb9 (patch) | |
tree | 5a49768ee34ccc3d17e078005bfd7346f244fdc7 | |
parent | eb9e5d2d5d4cac5d07ab1b8160bcf929020927e3 (diff) |
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>
-rw-r--r-- | include/vendor.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/vendor.sh b/include/vendor.sh index 6f7852d5..3693b5dc 100644 --- a/include/vendor.sh +++ b/include/vendor.sh @@ -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" |