diff --git a/ci/txcheck.sh b/ci/txcheck.sh index 7f85be970..73092adea 100644 --- a/ci/txcheck.sh +++ b/ci/txcheck.sh @@ -71,19 +71,15 @@ done # The state of translations tx_sum() { + CURDIR=`pwd` WORKTREE_NAME="$1" WORKTREE_TAG="$2" git worktree add $WORKTREE_NAME $WORKTREE_TAG > /dev/null 2>&1 || { echo "! Could not create worktree." ; exit 1 ; } - ( cd $WORKTREE_NAME && sh ci/txpush.sh --no-tx ) > /dev/null 2>&1 || { echo "! Could not re-create translations." ; exit 1 ; } - # Clean up the TS (XML) files (like txpush would) - TS_FILE="$WORKTREE_NAME/lang/calamares_en.ts" - if test -n "$XMLLINT" ; then - $XMLLINT --format --encode utf-8 -o "$TS_FILE".new "$TS_FILE" && mv "$TS_FILE".new "$TS_FILE" - fi - sed -i'' -e '/ /dev/null 2>&1 || { echo "! Could not re-create translations." ; exit 1 ; } - # Remove linenumbers from .pot + # Remove linenumbers from .ts (XML) and .pot + sed -i'' -e '/