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() {