make translation update script more specific in line selection (#4993)
This commit is contained in:
parent
675d07dac0
commit
9776ea53c9
1 changed files with 5 additions and 3 deletions
|
@ -45,12 +45,14 @@ if ! got="$(lupdate $DIRS -ts "$FILE" | tee /dev/stderr)"; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# trim output
|
# trim output
|
||||||
output="${got##*(}" # trim everything before last (
|
# the line we are interested in is:
|
||||||
|
# Found xxx source text(s) (x new and xxx already existing)
|
||||||
|
output="${got##* source text(s) (}" # get stuff in between brackets
|
||||||
output="${output%%)*}" # trim everything after first )
|
output="${output%%)*}" # trim everything after first )
|
||||||
if [[ $output == $got ]]; then
|
if [[ $output == "$got" ]]; then
|
||||||
echo "could not parse generated output" >&2
|
echo "could not parse generated output" >&2
|
||||||
exit 4;
|
exit 4;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# write output to ci environment file
|
# write output to ci environment file
|
||||||
echo "output=$output" >> $GITHUB_OUTPUT
|
echo "output=$output" >> "$GITHUB_OUTPUT"
|
||||||
|
|
Loading…
Reference in a new issue