Browse Source

do not continue if there is no git log for the EN base file

master
Max Mehl 1 week ago
parent
commit
bb5466ecd1
Signed by: max.mehl <max.mehl@fsfe.org> GPG Key ID: 2704E4AB371E2E92
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      tools/check-translation-status.sh

+ 7
- 0
tools/check-translation-status.sh View File

@@ -69,6 +69,13 @@ if [ ! -e "$EN" ]; then
exit 2
fi
endate=$(git log --pretty="%cd" --date=raw -1 "$EN"|cut -d' ' -f1)

# check if we have a git log of the EN base file. If not, abort
if [ -z "${endate}" ]; then
out "EN file does not have any Git log. Ususally this means the file is new"
exit 0
fi

# Convert to YYYY-MM-DD
ymd=$(date +"%Y-%m-%d" --date="@$endate")
out "Basefile: $EN ( $ymd )"

Loading…
Cancel
Save