From 738d4bb6b6d090d4e33b75a3ac14e655b9d20cb9 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 13 Apr 2025 04:01:45 +0100 Subject: 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 --- include/vendor.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') 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" -- cgit v1.2.1