Changeset - 5c234e4e7718
[Not reviewed]
0 1 0
Branko Majic (branko) - 4 years ago 2020-07-06 15:52:41
branko@majic.rs
Noticket: [factorio_manager.sh] Disable shellcheck validation for configuration files.
1 file changed with 9 insertions and 0 deletions:
0 comments (0 inline, 0 general) First comment
games/factorio_manager.sh
Show inline comments
 
@@ -1270,6 +1270,7 @@ elif [[ $command == list ]]; then
 
    # Find all sub-directories that are valid instances.
 
    for candidate in "$manager_directory"/*; do
 
        if [[ -f $candidate/instance.conf ]]; then
 
            # shellcheck source=/dev/null
 
            source "$candidate/instance.conf"
 
            echo "  - $(basename "$candidate") ($game_version)"
 
        fi
 
@@ -1393,6 +1394,7 @@ elif [[ $command == launch ]]; then
 
    fi
 

	
 
    # Read launcher configuration for the instance.
 
    # shellcheck source=/dev/null
 
    source "$instance_config"
 

	
 
    if [[ -z $game_version ]]; then
 
@@ -1507,6 +1509,7 @@ elif [[ $command == list-backups ]]; then
 
    backup_destination_name_pattern="[[:digit:]]{4}-[[:digit:]]{2}-[[:digit:]]{2}_[[:digit:]]{2}:[[:digit:]]{2}:[[:digit:]]{2}"
 

	
 
    # Read current game version.
 
    # shellcheck source=/dev/null
 
    source "$instance_config"
 
    current_game_version="$game_version"
 
    unset game_version
 
@@ -1524,6 +1527,7 @@ elif [[ $command == list-backups ]]; then
 
                backup_date=$(basename "$backup_destination")
 

	
 
                # Read instance configuration for backup.
 
                # shellcheck source=/dev/null
 
                source "$backup_destination/instance.conf"
 

	
 
                if [[ -f "$backup_destination/.description" ]]; then
 
@@ -1681,6 +1685,7 @@ elif [[ $command == remove-backup ]]; then
 
    validate_path_or_terminate "backup_directory" "$removal_target" "$ERROR_ARGUMENTS"
 

	
 
    # Read backup instance configuration.
 
    # shellcheck source=/dev/null
 
    source "$backup_instance_config"
 

	
 
    # Present user with warning.
 
@@ -1743,6 +1748,7 @@ elif [[ $command == set-version ]]; then
 
    validate_path_or_terminate "instance_directory" "$instance_directory" "$ERROR_ARGUMENTS"
 

	
 
    # Load instance configuration.
 
    # shellcheck source=/dev/null
 
    source "$instance_config"
 

	
 
    # Display list of available Factorio versions.
 
@@ -1787,6 +1793,7 @@ elif [[ $command == info ]]; then
 
    validate_path_or_terminate "instance_directory" "$instance_directory" "$ERROR_ARGUMENTS"
 

	
 
    # Load instance configuration.
 
    # shellcheck source=/dev/null
 
    source "$instance_config"
 

	
 
    # Basic information.
 
@@ -1964,6 +1971,7 @@ elif [[ $command == remove ]]; then
 
        fi
 

	
 
        # Display instance information.
 
        # shellcheck source=/dev/null
 
        source "$instance_config"
 
        echo "Instance name:    $(colorecho -n green "$instance")"
 
        echo "Instance version: $(colorecho -n green "$game_version")"
 
@@ -2033,6 +2041,7 @@ elif [[ $command == copy ]]; then
 
        lock "$source_lock_file" 200
 

	
 
        # Load source instance configuration.
 
        # shellcheck source=/dev/null
 
        source "$source_instance_config"
 

	
 
        # Display list of available Factorio versions.
0 comments (0 inline, 0 general) First comment
You need to be logged in to comment. Login now