From da58a1b50b83d7896ad7b9daa92b77d4f2ddbfdd 2022-08-16 23:51:06 From: Branko Majic <branko@majic.rs> Date: 2022-08-16 23:51:06 Subject: [PATCH] [factorio_development.sh] Let user confirm yes/no answer by pressing enter. --- diff --git a/games/factorio_development.sh b/games/factorio_development.sh index 869920996e6201f71222c2b691994b909a8f25c1..575efe8200e301fd86671cd8842214c5e5c22b95 100755 --- a/games/factorio_development.sh +++ b/games/factorio_development.sh @@ -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"