refactored sed calls to not use -i

This commit is contained in:
2025-04-25 19:37:56 +05:00
parent 4d06f57758
commit f0038dd7c7
2 changed files with 5 additions and 3 deletions

View File

@@ -120,5 +120,6 @@ if [ -f "$LOG_FILE" ]; then
-e 's/\[[0-9]m//g' \
-e 's/ H //g' \
-e 's/\[3gH //g' \
-i "$LOG_FILE"
"$LOG_FILE" > "$LOG_FILE.clean"
mv "$LOG_FILE.clean" "$LOG_FILE"
fi