Changeset - 3beb3f56155b
[Not reviewed]
0 1 0
Branko Majic (branko) - 17 months ago 2024-06-24 15:07:40
branko@majic.rs
[factorio_development.sh] Use Python 3 interpreter:

- Python 2.7 has been dropped from most distributions at this point,
and the old interpreter name will actually fail in most of them.
1 file changed with 2 insertions and 2 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="1.1.1"
 
VERSION="2.0.0"
 

	
 
function usage() {
 
    cat <<EOF
 
@@ -737,7 +737,7 @@ function command_build() {
 
            error "Validation failed for file: $mod_file"
 
        fi
 

	
 
        if [[ $mod_file_path =~ .*\.json ]] && ! python -m json.tool "$mod_file_path" > /dev/null; then
 
        if [[ $mod_file_path =~ .*\.json ]] && ! python3 -m json.tool "$mod_file_path" > /dev/null; then
 
            (( error_count += 1 ))
 
            error "Validation failed for file: $mod_file"
 
        fi
0 comments (0 inline, 0 general)