Skip to content

Commit

Permalink
quote variables
Browse files Browse the repository at this point in the history
  • Loading branch information
edibotopic committed Sep 26, 2024
1 parent 6f6d363 commit b6f5c49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions metrics/scripts/source_metrics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ else

for file in *.md *.rst; do
if [ -f "$file" ]; then
readabilityWords=$(vale ls-metrics $file | grep '"words"' | sed 's/[^0-9]*//g')
readabilitySentences=$(vale ls-metrics $file | grep '"sentences"' | sed 's/[^0-9]*//g')
readabilitySyllables=$(vale ls-metrics $file | grep '"syllables"' | sed 's/[^0-9]*//g')
readabilityWords=$(vale ls-metrics "$file" | grep '"words"' | sed 's/[^0-9]*//g')
readabilitySentences=$(vale ls-metrics "$file" | grep '"sentences"' | sed 's/[^0-9]*//g')
readabilitySyllables=$(vale ls-metrics "$file" | grep '"syllables"' | sed 's/[^0-9]*//g')
fi
done

Expand Down

0 comments on commit b6f5c49

Please sign in to comment.