mirror of
https://codeberg.org/fairyglade/ly.git
synced 2026-08-20 04:24:19 +02:00
remove necessity for temp file
This commit is contained in:
parent
7a1fce660c
commit
47ebe641d9
1 changed files with 1 additions and 4 deletions
|
|
@ -4,7 +4,6 @@ set -eu
|
|||
|
||||
function process_lang_file() {
|
||||
local input_file=$1
|
||||
local tmp_file=$(mktemp)
|
||||
local -A lang_strings_in_file
|
||||
|
||||
while read -r line; do
|
||||
|
|
@ -26,9 +25,7 @@ function process_lang_file() {
|
|||
printf "\n"
|
||||
fi
|
||||
done
|
||||
} > $tmp_file
|
||||
|
||||
mv "$tmp_file" "$input_file"
|
||||
} > "$input_file"
|
||||
}
|
||||
|
||||
LANG_DIR=$(dirname "$(realpath $0)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue