From 123a592f61c062e4613de72cf26bba160697b43a Mon Sep 17 00:00:00 2001 From: "T. Joseph Carter" Date: Thu, 10 May 2018 10:25:12 -0700 Subject: [PATCH] Move the install confirmation to install.sh Kept one in ivan.sh because that's currently useful. --- install.sh | 32 ++++++++++++++++++++++++++++++-- setup/ivan.sh | 13 +++---------- 2 files changed, 33 insertions(+), 12 deletions(-) diff --git a/install.sh b/install.sh index 6c2d87b..89c720b 100755 --- a/install.sh +++ b/install.sh @@ -11,6 +11,7 @@ a2cloudVersion="2.9.0" # Leave this quoted! noPicoPkg= +autoAnswerYes= # Find the path of our source directory a2cSource="$( dirname "${BASH_SOURCE[0]}" )" @@ -26,7 +27,10 @@ process_args() { while [[ $1 ]]; do if [[ $1 == "-c" ]]; then shift - noPicoPkg=1 + noPicoPkg="-c" + elif [[ $1 == "-y" ]]; then + shift + autoAnswerYes="-y" else shift fi @@ -37,10 +41,34 @@ process_args "$@" # FIXME: Show version, changes, config, allow reconfig, etc… "$a2cSource/scripts/show_changes" +cat <