summarylogtreecommitdiffstats
path: root/sdcard__move_cura_gcode.sh
blob: 071ea6730c7273babf66725062968c76e232deaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
cd "$(dirname -- "$0")" || exit $?

FILES="$(find . -maxdepth 1 -name 'D200_*.gcode')"
if [ "$(echo "$FILES" |wc -w)" -ne 1 ]
then
    echo >&2 "Error: not a single D200 GCode file"
    exit 1
fi

# Never stop the fan
sed 's/^M107$/M106 S130/' "$FILES" > dagoma.g
echo 'dagoma.g is ready!'