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 5050 i18n_content_updated_at=$(date -d "$(git log -1 --format=%cd --date=iso $i18n_filename)" +%s)
5151
5252 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")
5457 days_since_overdue_updates=$(( ($(date +%s) - original_updated_at) / 60 / 60 / 24 ))
5558 original_last_update_hash=$(git log -1 --format=%H $file)
5659 parent_hash=$(git log -1 --format=%P $original_last_update_hash)
You can’t perform that action at this time.
0 commit comments