Skip to content

Commit

Permalink
Fix slightly-less-easy install instructions
Browse files Browse the repository at this point in the history
Running the install instructions as documented, I get an error in bash:

```console
maciek@gamera:~/code/mongolike$ psql mongolike-test <sql/*.sql
bash: sql/*.sql: ambiguous redirect
```

I don't think it's possible to redirect input from multiple files like this. Looping over the files works for me.
  • Loading branch information
msakrejda committed Mar 25, 2014
1 parent f3208a1 commit a80495b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ The easy way to install is to use `node.js`.
$ npm install -g mongolike
$ mongolike-install -d yourdb

#### The Slight Less Easy Way
#### The Slightly Less Easy Way

$ psql yourdb <sql/*.sql
$ for file in sql/*.sql; do psql yourdb < $file; done

## Running Tests

Expand Down

0 comments on commit a80495b

Please sign in to comment.