File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 50
50
i18n_content_updated_at=$(date -d "$(git log -1 --format=%cd --date=iso $i18n_filename)" +%s)
51
51
52
52
if [[ $((original_updated_at - i18n_content_updated_at)) -ge 1 ]]; then
53
- content_title= $(awk '/## Title/{flag=1; next} /##/{flag=0; exit} flag{printf "%s", $0}' "$file")
53
+ content_header=$(grep -E '^title+' "$file" | sort -r | head -n1)
54
+ content_title=$(echo "$content_header" | sed 's/title: //g')
55
+
56
+ content_title=$(awk '/## Title/{flag=1; next} /##/{flag=0; exit} flag{printf "%s", $0}' "$file")
54
57
days_since_overdue_updates=$(( ($(date +%s) - original_updated_at) / 60 / 60 / 24 ))
55
58
original_last_update_hash=$(git log -1 --format=%H $file)
56
59
parent_hash=$(git log -1 --format=%P $original_last_update_hash)
You can’t perform that action at this time.
0 commit comments