Change output redirection to log file

Redirect all output to the log file using exec.
This commit is contained in:
Roy
2026-06-13 19:11:00 -07:00
committed by GitHub
parent d37aebfbfb
commit 2198836ee1
+2 -2
View File
@@ -95,8 +95,8 @@ if [[ -f $log_file ]]; then
rm $log_file
fi
# Redirect all output to the log file
exec > >(tee -a "$log_file") 2>&1
exec >> "$log_file" 2>&1
# Version number (major.minor)
version=v4.2.91