mirror of
https://github.com/friendica/friendica
synced 2024-11-09 17:02:54 +00:00
Fix pipeline error
This commit is contained in:
parent
d63edf5dfa
commit
2b61e623b4
2 changed files with 430 additions and 1318 deletions
|
@ -72,7 +72,7 @@ echo "Extract strings to $OUTFILE.."
|
||||||
[ -f "$OUTFILE" ] && rm "$OUTFILE"; touch "$OUTFILE"
|
[ -f "$OUTFILE" ] && rm "$OUTFILE"; touch "$OUTFILE"
|
||||||
|
|
||||||
# shellcheck disable=SC2086 # $FINDOPTS is meant to be split
|
# shellcheck disable=SC2086 # $FINDOPTS is meant to be split
|
||||||
find_result=$(find "$FINDSTARTDIR" $FINDOPTS -name "*.php" -type f | LC_ALL=C sort --stable)
|
find_result=$(find "$FINDSTARTDIR" $FINDOPTS -name "*.php" -type f | LC_ALL=C sort -s)
|
||||||
|
|
||||||
total_files=$(wc -l <<< "${find_result}")
|
total_files=$(wc -l <<< "${find_result}")
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ do
|
||||||
if [ ! -d "$file" ]
|
if [ ! -d "$file" ]
|
||||||
then
|
then
|
||||||
# shellcheck disable=SC2086 # $KEYWORDS is meant to be split
|
# shellcheck disable=SC2086 # $KEYWORDS is meant to be split
|
||||||
xgettext $KEYWORDS -j -o "$OUTFILE" --from-code=UTF-8 "$file" || exit 1
|
xgettext $KEYWORDS --no-wrap -j -o "$OUTFILE" --from-code=UTF-8 "$file" || exit 1
|
||||||
sed -i.bkp "s/CHARSET/UTF-8/g" "$OUTFILE"
|
sed -i.bkp "s/CHARSET/UTF-8/g" "$OUTFILE"
|
||||||
fi
|
fi
|
||||||
(( count++ ))
|
(( count++ ))
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue