Skip to content

Commit

Permalink
Skip postgresql if it's already installed
Browse files Browse the repository at this point in the history
As part of the `script/bootstrap` script, we install the `postgresql`
package. If the developer has already installed `Postgres.app` (which
has some [useful
features](https://chrisrbailey.medium.com/postgres-on-mac-skip-brew-use-postgres-app-dda95da38d74))
they might run into issues.

So, let's amend the Brewfile to only install `postgresql` if the `pgsql`
command isn't already available.
  • Loading branch information
leeky committed May 12, 2021
1 parent 38535ed commit a5e7070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Brewfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
brew "nodenv"
brew "postgresql"
brew "postgresql" unless system "which -s psql"
brew "rbenv"
brew "shellcheck"
brew "yarn"

0 comments on commit a5e7070

Please sign in to comment.