From 52bcade143a5a3b441d8504a902dc11a8b9a1269 Mon Sep 17 00:00:00 2001 From: HackerNCoder Date: Sat, 11 Feb 2023 21:44:58 +0100 Subject: [PATCH] Use date and time from po file when checking last changed --- .po2tl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.po2tl.sh b/.po2tl.sh index ea40f54..c37cc28 100755 --- a/.po2tl.sh +++ b/.po2tl.sh @@ -23,7 +23,7 @@ for file in ./translations-*.po; do continue 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" continue fi