summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.de>2019-07-13 15:09:53 +0200
committerjohannst <johannes.stoelp@gmail.de>2019-07-13 15:09:53 +0200
commit3b1d3b6f5eac2e1279d75de43d5eaca12f7c13b4 (patch)
tree70ab774a200d2b60d1d0367694b48cf7a1b24cf7
parentb223b0d72fb7b55567d3a89a4e06e758a7f6f79b (diff)
downloaddotfiles-3b1d3b6f5eac2e1279d75de43d5eaca12f7c13b4.tar.gz
dotfiles-3b1d3b6f5eac2e1279d75de43d5eaca12f7c13b4.zip
added -y flag to install to auto answer yes
-rwxr-xr-xinstall10
1 files changed, 6 insertions, 4 deletions
diff --git a/install b/install
index fa14673..2b89b5c 100755
--- a/install
+++ b/install
@@ -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