Skip to content

Commit

Permalink
fix: broken install
Browse files Browse the repository at this point in the history
  • Loading branch information
rochecompaan committed Jan 20, 2024
1 parent 8585799 commit 75a90d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 1 addition & 10 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 75a90d5

Please # to comment.