Skip to content

Commit

Permalink
Use command instead of which in install script, fixes #1114 (#1119)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay committed Sep 25, 2018
1 parent 54059ac commit 737033b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/index.md
Expand Up @@ -49,7 +49,7 @@ brew upgrade ddev
Linux and macOS end-users can use this line of code to your terminal to download, verify, and install (or upgrade) ddev using our [install script](https://github.com/drud/ddev/blob/master/install_ddev.sh):

```
curl https://raw.githubusercontent.com/drud/ddev/master/install_ddev.sh | bash
curl -L https://raw.githubusercontent.com/drud/ddev/master/install_ddev.sh | bash
```

Later, to upgrade ddev to the latest version, just run this again.
Expand Down
2 changes: 1 addition & 1 deletion install_ddev.sh
Expand Up @@ -55,7 +55,7 @@ else
sudo mv /tmp/ddev /usr/local/bin/
fi

if which brew && [ -f `brew --prefix`/etc/bash_completion ]; then
if command -v brew >/dev/null && [ -f `brew --prefix`/etc/bash_completion ]; then
bash_completion_dir=$(brew --prefix)/etc/bash_completion.d
cp /tmp/ddev_bash_completion.sh $bash_completion_dir/ddev
printf "${GREEN}Installed ddev bash completions in $bash_completion_dir${RESET}\n"
Expand Down

0 comments on commit 737033b

Please sign in to comment.