X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fbuildor%2Fbuildor_count_code.sh;h=3bd9fcedb32388983df48385586059bb858606e2;hb=04d1ca71956065bc82b6871d50ad110be6c23b88;hp=c80b6f8183c799fed7222858f2e545ea131cd879;hpb=813c826d5d37cc01f9db83c27439e4dd3a721806;p=feisty_meow.git diff --git a/scripts/buildor/buildor_count_code.sh b/scripts/buildor/buildor_count_code.sh index c80b6f81..3bd9fced 100644 --- a/scripts/buildor/buildor_count_code.sh +++ b/scripts/buildor/buildor_count_code.sh @@ -17,6 +17,8 @@ while true; do dir="$1"; shift if [ -z "$dir" ]; then + rm $NAME_LIST_TEMP_FILE + break; fi #echo dir is $dir @@ -31,9 +33,9 @@ while true; do #cat $NAME_LIST_TEMP_FILE #echo ==================================================== - while read line; do -#echo line is $line - count=$(grep -h -v -c "^[ ]*$" $line) + while read input_text; do +#echo input_text is $input_text + count=$(grep -h -v -c "^[ ]*$" $input_text) TOTALS=$(($TOTALS + $count)) #echo total is $TOTALS now done < "$NAME_LIST_TEMP_FILE"