nice new tool to show version of feisty meow
[feisty_meow.git] / scripts / buildor / buildor_count_code.sh
index c80b6f8183c799fed7222858f2e545ea131cd879..3bd9fcedb32388983df48385586059bb858606e2 100644 (file)
@@ -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"