From 76395667b78f9a67bd08354a4980fa606f9da179 2020-07-06 15:34:49 From: Branko Majic <branko@majic.rs> Date: 2020-07-06 15:34:49 Subject: [PATCH] Noticket: Display version information to user when removing backup via Factorio Manager. --- diff --git a/games/factorio_manager.sh b/games/factorio_manager.sh index 144f2453ae51aaba7d90eac3e517b896e2a9346f..7caf4cfdc0f1c3f394117953e422c24a9558b119 100755 --- a/games/factorio_manager.sh +++ b/games/factorio_manager.sh @@ -1672,13 +1672,16 @@ elif [[ $command == remove-backup ]]; then # Validate that backup directory contains valid backup. validate_path_or_terminate "backup_directory" "$removal_target" "$ERROR_ARGUMENTS" + # Read backup instance configuration. + source "$backup_instance_config" + # Present user with warning. echo if [[ -f "$removal_target/.description" ]]; then backup_description=$(<"$removal_target/.description") - backup_info="$backup_name ($backup_description)" + backup_info="$(colorecho green "$backup_name"), version $(colorecho green "$game_version") ($backup_description)" else - backup_info="$backup_name" + backup_info="$(colorecho green "$backup_name"), version $(colorecho green "$game_version")" fi warning "You are about to remove an instance backup. All files belonging to specified backup will be removed."