From 47ebe641d9200850b4f528146c0d4ee9f7fe54f9 Mon Sep 17 00:00:00 2001 From: Moritz Reinel <129004253+moritz-reinel@users.noreply.github.com> Date: Sat, 12 Oct 2024 21:51:50 +0200 Subject: [PATCH] remove necessity for temp file --- res/lang/fix_missing_entries.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/res/lang/fix_missing_entries.sh b/res/lang/fix_missing_entries.sh index 76c6df3..ab63965 100644 --- a/res/lang/fix_missing_entries.sh +++ b/res/lang/fix_missing_entries.sh @@ -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)")