Changeset - 046d19c9f37d
[Not reviewed]
0 1 0
Branko Majic (branko) - 17 months ago 2024-06-25 14:51:47
branko@majic.rs
[factorio_development.sh] Fixed shellcheck warning (SC2295).
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
games/factorio_development.sh
Show inline comments
 
@@ -22,7 +22,7 @@
 
set -u
 

	
 
PROGRAM="factorio_development.sh"
 
VERSION="2.1.0"
 
VERSION="2.1.1"
 

	
 
function usage() {
 
    cat <<EOF
 
@@ -775,7 +775,7 @@ function command_build() {
 

	
 
    # Copy the files.
 
    for mod_file in "${mod_files[@]}"; do
 
        if ! (cd "$base_dir" && install -m 0644 -D "$mod_file" "${target_dir}/${mod_file%%${source_dir}/}"); then
 
        if ! (cd "$base_dir" && install -m 0644 -D "$mod_file" "${target_dir}/${mod_file%%"$source_dir"/}"); then
 
            error "Failed to copy the file: $mod_file"
 
            return 1
 
        fi
 
@@ -1054,7 +1054,7 @@ function command_check_updates() {
 
            error "Failed to extract latest mod version: $mod_name"
 
            return 1
 
        fi
 
        
 

	
 
        # Sort by version, and use the check mode (returns 0 if lines are already sorted).
 
        if ! echo -e "$latest_version\n$local_version" | sort --version-sort --check=silent; then
 
            outdated_dependency=$(printf "%-48s %8s -> %8s" "$mod_name" "$local_version" "$latest_version")
0 comments (0 inline, 0 general)