diff --git a/README.md b/README.md index 6274bf8a..b025944e 100644 --- a/README.md +++ b/README.md @@ -28,10 +28,10 @@ formatting and linting checks Installation is supported on Linux and macOS: ``` -curl -sSL https://raw.githubusercontent.com/sixfeetup/scaf/main/install.sh | sh" +curl -sSL https://raw.githubusercontent.com/sixfeetup/scaf/main/install.sh | sh ``` -The installation script will ask to install kubectl, kind, and Tilt if it can't +The installation script will install kubectl, kind, and Tilt if it can't be found on your system. ## Creating a new project using this repo diff --git a/install.sh b/install.sh index b1e12b2a..88de6c6d 100755 --- a/install.sh +++ b/install.sh @@ -8,15 +8,6 @@ command_exists() { type "$1" &> /dev/null } -prompt_install() { - read -p "Do you want to install $1? (y/n) " answer - if [[ $answer = [Yy]* ]]; then - install_$1 - else - echo "Skipping installation of $1." - fi -} - detect_os_and_arch() { os=$(uname -s) arch=$(uname -m) @@ -112,7 +103,7 @@ install_scaf() { for tool in kubectl kind tilt; do if ! command_exists $tool; then echo "$tool is not installed." - prompt_install $tool + install_$tool else echo "$tool is already installed." fi