1
0

fixed downloader file

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2026-01-17 15:45:16 +01:00
parent 2295825b35
commit 45f5069cdd

View File

@@ -19,7 +19,7 @@ log "Starting update check..."
# Run the updater to check for and download updates # Run the updater to check for and download updates
# The updater downloads files like "2026-01-17-abcdef.zip" # The updater downloads files like "2026-01-17-abcdef.zip"
./updater 2>&1 | tee -a "$LOG_FILE" ./hytale-downloader-linux-amd64 2>&1 | tee -a "$LOG_FILE"
# Find the newest zip file (pattern: YYYY-MM-DD-*.zip) # Find the newest zip file (pattern: YYYY-MM-DD-*.zip)
NEWEST_ZIP=$(ls -t [0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]-*.zip 2>/dev/null | head -n1) NEWEST_ZIP=$(ls -t [0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]-*.zip 2>/dev/null | head -n1)