Changeset - da58a1b50b83
[Not reviewed]
0 1 0
Branko Majic (branko) - 2 years ago 2022-08-16 23:51:06
branko@majic.rs
[factorio_development.sh] Let user confirm yes/no answer by pressing enter.
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general) First comment
games/factorio_development.sh
Show inline comments
 
@@ -181,8 +181,7 @@ function command_init() {
 

	
 
    # Create separate source directory if the user requests it.
 
    while [[ ${separate_source-} == "" || ${separate_source,,} != y && ${separate_source,,} != n ]]; do
 
        read -r -n1 -p "Separate mod source under \"src/\" sub-directory? (y/n) " separate_source
 
        echo
 
        read -r -p "Separate mod source under \"src/\" sub-directory? (y/n) " separate_source
 
    done
 

	
 
    [[ ${separate_source,,} == y ]] && source_dir="$base_dir/src" || source_dir="$base_dir"
0 comments (0 inline, 0 general) First comment
You need to be logged in to comment. Login now