Skip to content

Commit

Permalink
Code & Features Update
Browse files Browse the repository at this point in the history
  • Loading branch information
nathaneltitane committed Sep 17, 2023
1 parent fc9b480 commit fc1d5b6
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions l2cu
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down Expand Up @@ -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%/*}"
Expand All @@ -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
Expand Down

0 comments on commit fc1d5b6

Please sign in to comment.