Merge branch 'release-2.140.189'
[feisty_meow.git] / scripts / email / count_maildir.sh
index d927383137bd4adad754ee47e6f7494505791441..9858c79efd6ef26daae999a533cd034426ba60e4 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # counts up the files in each maildir 'cur' folder to find out how many messages are
 # held in each subdirectory.
@@ -9,7 +9,7 @@ folderlist=$TMP/zz_folder_list.txt
 
 find . -name "cur" >$folderlist
 
-while read line; do echo -n "$line  -- " ; find "$line" -type f | wc -l ; done < $folderlist
+while read input_text; do echo -n "$input_text  -- " ; find "$input_text" -type f | wc -l ; done < $folderlist
 
 popd &>/dev/null