Skip to content

Commit 31bef9d

Browse files
committed
escape paths
1 parent 98e3c2c commit 31bef9d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

render-pcb.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,17 @@ fi
4747

4848
KICAD_CLI=$(which kicad-cli || which kicad-cli-nightly)
4949

50-
echo $output_path
50+
echo "$output_path"
5151

52-
mkdir -p $output_path
52+
mkdir -p "$output_path"
5353
echo "rendering top"
54-
$KICAD_CLI pcb render --side top --background $background -o $output_path/top.png $kicad_pcb
54+
$KICAD_CLI pcb render --side top --background $background -o "$output_path/top.png" "$kicad_pcb"
5555
echo "rendering bottom"
56-
$KICAD_CLI pcb render --side bottom --background $background -o $output_path/bottom.png $kicad_pcb
56+
$KICAD_CLI pcb render --side bottom --background $background -o "$output_path/bottom.png" "$kicad_pcb"
5757

5858
if [[ -n "$animation" ]]; then
5959
echo "rendering animation"
60-
kicad_animation.sh $animation $kicad_pcb $output_path
60+
kicad_animation.sh $animation "$kicad_pcb" "$output_path"
6161
fi
6262

63-
ls $output_path
63+
ls "$output_path"

0 commit comments

Comments
 (0)