Use date and time from po file when checking last changed

This commit is contained in:
HackerNCoder 2023-02-11 21:44:58 +01:00
parent fc0e926e5a
commit 52bcade143

View file

@ -23,7 +23,7 @@ for file in ./translations-*.po; do
continue continue
fi fi
if (( $(date -d $(awk '/PO-Revision-Date/{print $2}' ${file}) +%s) < $CI_PREV_BUILD_STARTED )); then if (( $(date -d $(awk '/PO-Revision-Date/{sub(/+.*/;""); print $2"T"$3}' ${file}) +%s) < $CI_PREV_BUILD_STARTED )); then
echo -e "\x1B[36mSKIPPING $file since it hasn't been changed since last CI\x1B[0m" echo -e "\x1B[36mSKIPPING $file since it hasn't been changed since last CI\x1B[0m"
continue continue
fi fi