From ff7131e65b704dd0b76f10db4920d7db6606e2aa Mon Sep 17 00:00:00 2001 From: rusefillc Date: Wed, 17 Apr 2024 15:08:58 -0400 Subject: [PATCH] Revert "Revert "Turn tabs into spaces for Kicad 8"" This reverts commit 99740ac85a89b26658599ab65ca55de59843b8e1. --- kicad/bin/export.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kicad/bin/export.sh b/kicad/bin/export.sh index aea7fcd..d3edf41 100755 --- a/kicad/bin/export.sh +++ b/kicad/bin/export.sh @@ -51,8 +51,8 @@ echo Export positions file kicad-cli pcb export pos --format csv --units mm --use-drill-file-origin --bottom-negate-x "$PCB_FILE" -o "gerber/$IN-all-pos.csv" echo Getting Drill/Place origin from PCB -X=$(grep "aux_axis_origin" "$PCB_FILE" | tr -s ' ' | cut -d ' ' -f 3) -Y=$(grep "aux_axis_origin" "$PCB_FILE" | tr -s ' ' | cut -d ' ' -f 4 | tr -d ')') +X=$(grep "aux_axis_origin" "$PCB_FILE" | tr ' ' ' ' | tr -s ' ' | cut -d ' ' -f 3) +Y=$(grep "aux_axis_origin" "$PCB_FILE" | tr ' ' ' ' | tr -s ' ' | cut -d ' ' -f 4 | tr -d ')') if [ ! "$Y" ]; then echo "aux_axis_origin is missing in the PCB file" exit -1