diff --git a/examples/CNC_mill_drill_from_KiCad/Readme.md b/examples/CNC_mill_drill_from_KiCad/Readme.md index d54447a..9da02a4 100644 --- a/examples/CNC_mill_drill_from_KiCad/Readme.md +++ b/examples/CNC_mill_drill_from_KiCad/Readme.md @@ -14,6 +14,6 @@ chmod +x export.sh The script will first generate gerber files in the `output` directory and then convert them into `ngc` format in the `gcode` directory. Launch the `gSender` program. -* Load the `drill.ngc` file for drilling holes. -* Load the `outline.ngc` file for milling the board outlines. -* Load the `back.ngc` file if you want to mill the isolation traces. \ No newline at end of file +* Load the `gcode/drill.ngc` file for drilling holes. +* Load the `gcode/outline.ngc` file for milling the board outlines. +* Load the `gcode/back.ngc` file if you want to mill the isolation traces. diff --git a/examples/CNC_mill_drill_from_KiCad/export.sh b/examples/CNC_mill_drill_from_KiCad/export.sh index 5c47434..9f952ac 100755 --- a/examples/CNC_mill_drill_from_KiCad/export.sh +++ b/examples/CNC_mill_drill_from_KiCad/export.sh @@ -11,7 +11,7 @@ kicad-cli pcb export drill -o output $1 mkdir -p gcode -docker run --rm -i -t -v ".:/data" ptodorov/pcb2gcode \ +docker run --rm -i -t -u "$(id -u):$(id -g)" -v ".:/data" ptodorov/pcb2gcode \ --back="output/$filename-B_Cu.gbl" \ --drill="output/$filename.drl" \ --outline="output/$filename-Edge_Cuts.gm1"