From 01106665d26f9c5ee417f58c8f606756306a0db0 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Fri, 15 Oct 2021 11:39:18 -0400 Subject: [PATCH] Create correct CSG folder before building. Do not commit csg files because they are intermediary? For now. --- scripts/v3.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/v3.sh b/scripts/v3.sh index cc1fa58..5909d9c 100644 --- a/scripts/v3.sh +++ b/scripts/v3.sh @@ -31,9 +31,10 @@ FILES=( ) SIZES=( "50ft" "100ft" ) -mkdir -p $DIST +mkdir -p "${DIST}" if [ $STEP = true ]; then - mkdir -p $CSG + mkdir -p "${CSG}" + mkdir -p "${CSG}/${SIZE}_${V}/" fi render_part () { @@ -67,7 +68,7 @@ render_part () { if [[ $firstline == solid* ]]; then #convert from ascii to binary tmpBinary=`mktemp` - admesh -c -b "$stl" "$tmpBinary" + admesh -c -b "$tmpBinary" "$stl" newSize=`wc -c < "$tmpBinary"` newSize=`echo $newSize | xargs`