Skip to content

Commit c15b89b

Browse files
authored
Improve install_ddev.sh by making it create /usr/local/bin, replaces ddev#4747 [skip ci] (ddev#4752)
1 parent e7ec0e3 commit c15b89b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

docs/content/users/install/ddev-installation.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Installing and upgrading DDEV are nearly the same thing, because you're upgradin
1010

1111
### Homebrew
1212

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

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

34+
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.
3435

35-
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:
36+
To install or update DDEV:
3637

3738
```
3839
curl -fsSL https://ddev.com/install.sh | bash

scripts/install_ddev.sh

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ set -o errexit
88
set -o pipefail
99
set -o nounset
1010

11+
if [ ! -d /usr/local/bin ]; then echo 'using sudo to mkdir missing /usr/local/bin' && sudo mkdir -p /usr/local/bin; fi
12+
1113
GITHUB_OWNER=${GITHUB_OWNER:-ddev}
1214
ARTIFACTS="ddev mkcert macos_ddev_nfs_setup.sh"
1315
TMPDIR=/tmp
@@ -198,4 +200,6 @@ if command -v mkcert >/dev/null; then
198200
mkcert -install
199201
fi
200202

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

0 commit comments

Comments
 (0)