fix hack/db script
was foolish and failed to test this before, and then
we further added a db password
#!/bin/bash
-if command -qs pgcli; then
- pgcli -h localhost -p 6543 -U dev concourse
+if which pgcli >/dev/null; then
+ PGPASSWORD=dev pgcli -h localhost -p 6543 -U dev concourse
else
- psql -h localhost -p 6543 -U dev concourse
+ PGPASSWORD=dev psql -h localhost -p 6543 -U dev concourse
fi
