Commit 1c991ff3 authored by Anton Midyukov's avatar Anton Midyukov

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 c86141fc
parent 91775fd7
...@@ -90,7 +90,7 @@ imagedir: ...@@ -90,7 +90,7 @@ imagedir:
@mkdir -p "$(IMAGE_OUTDIR)" @mkdir -p "$(IMAGE_OUTDIR)"
postprocess: | $(addprefix postprocess-,$(sort $(POSTPROCESS_TARGETS))) 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 \ if [ ! -n "$$OUTSIZE" ]; then \
echo "** error: $(IMAGE_OUTPATH) missing" >&2; \ echo "** error: $(IMAGE_OUTPATH) missing" >&2; \
exit 1; \ exit 1; \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment