From 200cdd24ac0e121421ceaf5d4d71604266d67f1b Mon Sep 17 00:00:00 2001 From: rusefillc Date: Fri, 14 Jul 2023 22:17:32 -0400 Subject: [PATCH] https://github.com/rusefi/rusefi-hardware/issues/219 --- kicad/bin/export.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kicad/bin/export.sh b/kicad/bin/export.sh index adf2fc6..9fa9c2b 100644 --- a/kicad/bin/export.sh +++ b/kicad/bin/export.sh @@ -18,6 +18,11 @@ cp "$IN.kicad_pcb" "$IN.kicad_pcb.bak" SCHEMATIC_FILE=$IN.kicad_sch NET_FILE=$OUT_FOLDER/$IN.net +if [ ! -f $SCHEMATIC_FILE ] +then + echo "[$SCHEMATIC_FILE] schematic does not exist make sure at least KiCAD 6.0" + exit -1 +fi echo Export PDF from [$SCHEMATIC_FILE] schematic kicad-cli sch export pdf "$SCHEMATIC_FILE" --no-background-color -o "gerber/$IN.pdf"