From 1c991ff3f75e0f806d139675a9674d25bf74881b Mon Sep 17 00:00:00 2001 From: Anton Midyukov Date: Tue, 31 Oct 2023 06:57:28 +0700 Subject: [PATCH] image.in/Makefile: fix show out image size again The number of spaces may vary, so the column may be the sixth rather than the fifth. As a result, we get an empty value and an error. See commit c86141fc454f35deaecdb945d24e8877b0474ef2 --- image.in/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image.in/Makefile b/image.in/Makefile index f6494282..fd16026b 100644 --- a/image.in/Makefile +++ b/image.in/Makefile @@ -90,7 +90,7 @@ imagedir: @mkdir -p "$(IMAGE_OUTDIR)" postprocess: | $(addprefix postprocess-,$(sort $(POSTPROCESS_TARGETS))) - @OUTSIZE="`ls -lh "$(IMAGE_OUTPATH)" | cut -f5 -d' '`"; \ + @OUTSIZE="`ls -lh "$(IMAGE_OUTPATH)" | tr -s " " | cut -f5 -d' '`"; \ if [ ! -n "$$OUTSIZE" ]; then \ echo "** error: $(IMAGE_OUTPATH) missing" >&2; \ exit 1; \