chiark / gitweb /
quacks-ingredients: gcode manipulation wip
[reprap-play.git] / quacks-ingredients-make-copy-gcodes
index c2c08492963f75dd708553b5791a7c0cf3a6b385..0aaa814cca8c3bb28f598ecc4d7685a96cfbaaf0 100755 (executable)
@@ -14,9 +14,6 @@ set -e
 f=$1
 shift
 
-umount /media/sd >/dev/null 2>&1 ||:
-mount /media/sd
-
 lhs=quacks-ingredients-L
 
 gh () {
@@ -41,7 +38,12 @@ for l in 1 2 3 4 5; do
                $l = $_;
                END { print $l or die $!; }
        ' $g
+done
 
+umount /media/sd >/dev/null 2>&1 ||:
+mount /media/sd
+
+for l in 1 2 3 4 5; do
        cp $g $h
 done