Commit 72234b6b authored by bgm's avatar bgm Committed by Jenkins

bin/commit-to-git.sh: Fix for when Last-Translator does not inclide an email address.

parent 65722443
......@@ -42,7 +42,9 @@ PO_NEW=$(git ls-files -o | grep '\.po' | sort)
PO_MOD=$(git ls-files -m | grep '\.po' | sort)
function get_author {
echo $(awk 'BEGIN { FS=": " } /Last-Translator/ { sub("\\\\n\"", ""); print $2 }' "$1")
# Transifex has an option to hide the email from .po files
# So if we don't see a @ char, use <>, otherwise git won't commit.
echo $(awk 'BEGIN { FS=": " } /Last-Translator/ { sub("\\\\n\"", ""); if ($2 ~ /@/) print $2; else print $2, " <>" }' "$1")
}
function do_commit {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment