summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
Diffstat (limited to 'install')
-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