Use single quotes for filename

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2016-07-28 08:15:04 +02:00
parent 3c4226cb8c
commit 43a199bdca

View File

@ -20,7 +20,7 @@ php_code=""
for file in `find js -name '*.js'` ; do
lc=`wc -l $file | sed 's/\([0-9]*\).*/\1/'`
file=${file:3}
entry="\$LINE_COUNT[\"$file\"] = $lc;"
entry="\$LINE_COUNT['$file'] = $lc;"
php_code="$php_code\n$entry"
done
echo -e $php_code >> js/line_counts.php