From 1ef10c3c14d1c505411fdc38d3c3fed0338958f6 Mon Sep 17 00:00:00 2001 From: Wayne Warthen Date: Thu, 10 Jul 2025 10:39:00 -0700 Subject: [PATCH] Fix MacOS Build, Issue #576 --- Source/Images/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Images/Makefile b/Source/Images/Makefile index abfe97d7..03dc2ce9 100644 --- a/Source/Images/Makefile +++ b/Source/Images/Makefile @@ -63,9 +63,9 @@ hd512_%.img: %.def while read line; do \ line=$$(echo "$${line}" | sed 's/^[[:space:]]*//;s/[[:space:]]*$$//') ; \ if [ -z "$${line}" ]; then \ - continue; + continue; \ fi; \ - if [ "`expr substr "$$line" 1 1`" = "#" ]; then \ + if [ "`echo ""$${line}"" | awk '{print substr($$0,1,1);exit}'`" = "#" ]; then \ continue; \ fi; \ file_list="$${file_list} hd512_$${line}.img"; \ @@ -81,9 +81,9 @@ hd1k_%.img: %.def while read line; do \ line=$$(echo "$${line}" | sed 's/^[[:space:]]*//;s/[[:space:]]*$$//') ; \ if [ -z "$${line}" ]; then \ - continue; + continue; \ fi; \ - if [ "`expr substr "$$line" 1 1`" = "#" ]; then \ + if [ "`echo ""$${line}"" | awk '{print substr($$0,1,1);exit}'`" = "#" ]; then \ continue; \ fi; \ file_list="$${file_list} hd1k_$${line}.img"; \