Commit c86141fc authored by Anton Midyukov's avatar Anton Midyukov

image.in/Makefile: fix show image size

he 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.
parent d5343269
......@@ -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 -hs "$(IMAGE_OUTPATH)" | cut -f1 -d' '`"; \
if [ ! -n "$$OUTSIZE" ]; then \
echo "** error: $(IMAGE_OUTPATH) missing" >&2; \
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