#!/bin/bash # Run repopack to generate the file repopack # Check if repopack generated the eveai_repo.txt file if [[ -f "eveai_repo.txt" ]]; then # Get the current timestamp in the format YYYY-DD-MM_HH:MM:SS timestamp=$(date +"%Y-%d-%m_%H-%M-%S") # Rename the file with the timestamp mv eveai_repo.txt "${timestamp}_eveai_repo.txt" echo "File renamed to ${timestamp}_eveai_repo.txt" else echo "Error: eveai_repo.txt not found. repopack may have failed." fi