Changeset - 76395667b78f
[Not reviewed]
0 1 0
Branko Majic (branko) - 4 years ago 2020-07-06 15:34:49
branko@majic.rs
Noticket: Display version information to user when removing backup via Factorio Manager.
1 file changed with 5 insertions and 2 deletions:
0 comments (0 inline, 0 general) First comment
games/factorio_manager.sh
Show inline comments
 
@@ -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."
0 comments (0 inline, 0 general) First comment
You need to be logged in to comment. Login now