From edfb568c823c7c4d2ce05f6d2d10c0e45a2847c1 Mon Sep 17 00:00:00 2001 From: Wayne Warthen Date: Thu, 17 Jul 2025 16:04:26 -0700 Subject: [PATCH] Fix Images Makefile for MacOS Compatibility (again) --- Source/Images/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Images/Makefile b/Source/Images/Makefile index 298e3980..beb9558c 100644 --- a/Source/Images/Makefile +++ b/Source/Images/Makefile @@ -121,7 +121,7 @@ blankhd1k: $(BINDIR)/mkfs.cpm -f $$fmt -b $$SysImage $@ ; \ fi ; \ if [ "$$Label" ] ; then \ - Label=`expr substr "$$Label" 1 16` ; \ + Label=`echo "$$Label" | awk '{ print substr($$0, 1, 16) }'` ; \ echo "Label: \"$$Label\"" ; \ echo -n "\$$\$$\$$\$$\$$\$$\$$\$$\$$\$$\$$\$$\$$\$$\$$\$$\$$" | dd conv=notrunc status=none bs=1 seek=1511 of=$@ ; \ echo -n "$$Label" | dd conv=notrunc status=none bs=1 seek=1511 of=$@; \