delete log before creating new one so its not so big

This commit is contained in:
Roy 2024-07-29 16:52:08 -07:00 committed by GitHub
parent 8e6bcb7e41
commit ac1c24666b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,8 +25,17 @@ download_dir="${logged_in_home}/Downloads/NonSteamLaunchersInstallation"
# Create a log file in the same directory as the desktop file/.sh file
exec >> "${logged_in_home}/Downloads/NonSteamLaunchers-install.log" 2>&1
# Define the log file path
log_file="${logged_in_home}/Downloads/NonSteamLaunchers-install.log"
# Check if the log file exists and delete it
if [ -f "$log_file" ]; then
rm "$log_file"
fi
# Create a new log file
exec >> "$log_file" 2>&1
# Version number (major.minor)
version=v3.9.1