Skip to content

Commit

Permalink
Improve install_ddev.sh by making it create /usr/local/bin, replaces d…
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay authored Mar 17, 2023
1 parent e7ec0e3 commit c15b89b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/content/users/install/ddev-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Installing and upgrading DDEV are nearly the same thing, because you're upgradin

### Homebrew

[Homebrew](https://brew.sh/) is the easiest way to install and upgrade DDEV:
We recommend [Homebrew](https://brew.sh/) because it’s the easiest and most reliable way to install and upgrade DDEV:

```bash
brew install ddev/ddev/ddev
Expand All @@ -31,8 +31,9 @@ Installing and upgrading DDEV are nearly the same thing, because you're upgradin
!!!tip
The install script works on macOS, Linux, and Windows WSL2.

The [install script](https://github.com/ddev/ddev/blob/master/scripts/install_ddev.sh) is an alternate way to install or upgrade DDEV. It downloads, verifies, and sets up the `ddev` binary.

Run the [install script](https://github.com/ddev/ddev/blob/master/scripts/install_ddev.sh) to install or update DDEV. It downloads, verifies, and sets up the `ddev` binary:
To install or update DDEV:

```
curl -fsSL https://ddev.com/install.sh | bash
Expand Down
4 changes: 4 additions & 0 deletions scripts/install_ddev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ set -o errexit
set -o pipefail
set -o nounset

if [ ! -d /usr/local/bin ]; then echo 'using sudo to mkdir missing /usr/local/bin' && sudo mkdir -p /usr/local/bin; fi

GITHUB_OWNER=${GITHUB_OWNER:-ddev}
ARTIFACTS="ddev mkcert macos_ddev_nfs_setup.sh"
TMPDIR=/tmp
Expand Down Expand Up @@ -198,4 +200,6 @@ if command -v mkcert >/dev/null; then
mkcert -install
fi

hash -r

printf "${GREEN}ddev is now installed. Run \"ddev\" and \"ddev --version\" to verify your installation and see usage.${RESET}\n"

0 comments on commit c15b89b

Please sign in to comment.