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
 
@@ -1669,19 +1669,22 @@ elif [[ $command == remove-backup ]]; then
 
    # Validate that instance directory contains valid instance.
 
    validate_path_or_terminate "instance_directory" "$instance_directory" "$ERROR_ARGUMENTS"
 

	
 
    # 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."
 
    echo
 
    echo "Instance: $(colorecho -n green "$instance")"
 
    echo
0 comments (0 inline, 0 general) First comment
You need to be logged in to comment. Login now