diff options
author | johannst <johannes.stoelp@gmail.de> | 2019-07-13 15:09:53 +0200 |
---|---|---|
committer | johannst <johannes.stoelp@gmail.de> | 2019-07-13 15:09:53 +0200 |
commit | 3b1d3b6f5eac2e1279d75de43d5eaca12f7c13b4 (patch) | |
tree | 70ab774a200d2b60d1d0367694b48cf7a1b24cf7 | |
parent | b223b0d72fb7b55567d3a89a4e06e758a7f6f79b (diff) | |
download | dotfiles-3b1d3b6f5eac2e1279d75de43d5eaca12f7c13b4.tar.gz dotfiles-3b1d3b6f5eac2e1279d75de43d5eaca12f7c13b4.zip |
added -y flag to install to auto answer yes
-rwxr-xr-x | install | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -255,9 +255,11 @@ function main() { echo -e "\t$conf" done - echo "Install this configs? [yY/nN]" - read go_install - [[ $go_install =~ ^[^yY]$ ]] && exit 0 + [[ $1 != '-y' ]] && { + echo "Install this configs? [yY/nN]" + read go_install + [[ $go_install =~ ^[^yY]$ ]] && exit 0 + } for conf in ${configToInstall[@]}; do installConfig $conf @@ -330,4 +332,4 @@ isInstallerDefined () { #}}} -main +main $1 |