Replace #updated with the updated message in qsgen2 file

This commit is contained in:
Stig-Ørjan Smelror 2024-02-12 23:01:36 +01:00
parent 8a9f4eed88
commit a34812d11c

3
qsgen2
View File

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