From a34812d11c6b46c12025a05b1731ed573df19d89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Mon, 12 Feb 2024 23:01:36 +0100 Subject: [PATCH] Replace #updated with the updated message in qsgen2 file --- qsgen2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qsgen2 b/qsgen2 index 8234e42..e50c38a 100755 --- a/qsgen2 +++ b/qsgen2 @@ -444,8 +444,9 @@ function _f_last_updated() { # Perform the replacement content="${content//#updated/${upd_msg}}" + sed -i '' -e "s|#updated|${upd_msg}|" "${file_path}" # Write the updated content back to the file - print -r -- "$content" >| "${file_path}" + #print -r -- "$content" >| "${file_path}" } function _file_to_lower() {