From d0fd64bb93baef90a4c0ed1e47ae986cac3d6e81 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 19 Feb 2020 23:19:58 +0000 Subject: [PATCH] quacks-ingredients: gcode manipulation wip Signed-off-by: Ian Jackson --- quacks-ingredients-make-copy-gcodes | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/quacks-ingredients-make-copy-gcodes b/quacks-ingredients-make-copy-gcodes index c2c0849..0aaa814 100755 --- a/quacks-ingredients-make-copy-gcodes +++ b/quacks-ingredients-make-copy-gcodes @@ -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 -- 2.30.2