Turn tabs into spaces for Kicad 8

(cherry picked from commit 1cc79bec8c)
This commit is contained in:
David Holdeman 2024-04-12 16:14:24 -05:00 committed by rusefillc
parent 25b550713b
commit 7abdf7c3bd
1 changed files with 2 additions and 2 deletions

View File

@ -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