Basic info
- Distro: [Ubuntu 20.04]
- Game: [Factorio]
- Command: [Backup and Details]
- LinuxGSM version: [v20.5.1]
Further Information
When using either the backup or details command, the oldest backup is reported as the latest backup, leading to confusion.
I think the script info_distro.sh is causing the issue.
I've changed the line
lastbackup=$(find "${backupdir}"/*.tar.gz | head -1)
to
lastbackup=$(find "${backupdir}"/*.tar.gz | tail -1)
and it seems to have fixed the issue.
To Reproduce
Steps to reproduce the behaviour:
Use either the backup or details command
Observe the "Latest backup" section information
Compare with the actual file list of the backups directory
Expected behaviour
"Latest backup" should refer to the most recently created backup, not the oldest backup.
Basic info
Further Information
When using either the backup or details command, the oldest backup is reported as the latest backup, leading to confusion.
I think the script info_distro.sh is causing the issue.
I've changed the line
lastbackup=$(find "${backupdir}"/*.tar.gz | head -1)to
lastbackup=$(find "${backupdir}"/*.tar.gz | tail -1)and it seems to have fixed the issue.
To Reproduce
Steps to reproduce the behaviour:
Use either the backup or details command
Observe the "Latest backup" section information
Compare with the actual file list of the backups directory
Expected behaviour
"Latest backup" should refer to the most recently created backup, not the oldest backup.