From a872caaf88ea95c4c888c74ca2663cfb9302d4dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Dudr?= Date: Thu, 12 May 2022 20:00:46 +0200 Subject: [PATCH] improve pomerge --- dot_config/zsh/functions.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dot_config/zsh/functions.zsh b/dot_config/zsh/functions.zsh index 44bd450..2a0e05d 100644 --- a/dot_config/zsh/functions.zsh +++ b/dot_config/zsh/functions.zsh @@ -11,7 +11,9 @@ pomerge() { cp -v "$new_po" "$app_po" return fi - msgcat --use-first --no-location --no-wrap "$app_po" "$new_po" + tmp="$(mktemp)" + msgcat --use-first --no-location --no-wrap "$app_po" "$new_po" > "$tmp" + mv "$tmp" "$app_po" } pocompile() {