From fc1d5b6a7d73a82beffaeaea7130ce8a8cd9653e Mon Sep 17 00:00:00 2001 From: nathaneltitane Date: Sun, 17 Sep 2023 15:24:24 -0400 Subject: [PATCH] Code & Features Update --- l2cu | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/l2cu b/l2cu index 921ac1e..df75f2d 100755 --- a/l2cu +++ b/l2cu @@ -760,10 +760,6 @@ l2cu_pieces () { frobulator.fwd "parse" echo - part_count_file="${model_path%/*}"/parts.csv - - pieces_file="${model_path%/*}"/pieces - if [ -f "${pieces_file}" ] then rm -rf "${pieces_file}" @@ -1930,12 +1926,12 @@ then do models_list=( $(find ${directory} -type f -iname "*.${extension}" ! -iname "*instructions.${extension}")) - for model_path in ${models_list[@]} - do - # set IFS + # set IFS - IFS=' ' + IFS=$'\n' + for model_path in ${models_list[@]} + do # get model base directory from path model_directory="${model_path%/*}" @@ -1948,6 +1944,12 @@ then model_name="${model_file%.*}" + # define pieces output files + + part_count_file="${model_directory}"/parts.csv + + pieces_file="${model_directory}"/pieces + # generate pieces count file l2cu_pieces