Skip to content

Commit 4859d0f

Browse files
committed
Whitespace
1 parent 9efa50d commit 4859d0f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

bin/check_dates

+8-8
Original file line numberDiff line numberDiff line change
@@ -20,38 +20,38 @@ function date_from_front_matter() {
2020

2121
function main () {
2222
POSTS_DIR="_posts"
23-
23+
2424
file_count=0
2525
inconsistent_count=0
2626
{
2727
shopt -s nullglob;
2828
for file_path in "${POSTS_DIR}"/*.md ; do
2929
((file_count = file_count + 1))
30-
30+
3131
file_basename=$(basename "$file_path" .md)
3232

3333
date_from_filename=$( date_from_filename "$file_basename" )
3434
date_from_front_matter=$( date_from_front_matter "${file_path}" )
3535

3636
if [[ "${date_from_filename}" = '' ]] ||
37-
[[ "${date_from_filename}" != "${date_from_front_matter}" ]]
37+
[[ "${date_from_filename}" != "${date_from_front_matter}" ]]
3838
then
3939
warn "Inconsist or missing date info: ${file_path}"
4040
warn " Date From Filename: '${date_from_filename}'"
4141
warn " Date From Front Matter: '${date_from_front_matter}'"
4242
((inconsistent_count=inconsistent_count + 1))
4343
else
44-
# warn "Consistent|${file_path}|${filename}|${date_from_filename}|${date_from_front_matter}|"
44+
# warn "Consistent|${file_path}|${file_basename}|${date_from_filename}|${date_from_front_matter}|"
4545
:
4646
fi
4747
done
4848
}
49-
49+
5050
if (($inconsistent_count > 0)); then
51-
warn "Inconsistencies detected in $inconsistent_count file."
52-
exit 1
51+
warn "Inconsistencies detected in $inconsistent_count file."
52+
exit 1
5353
else
54-
warn "All dates are consistent in $file_count files."
54+
warn "All dates are consistent in $file_count files."
5555
fi
5656
}
5757

0 commit comments

Comments
 (0)