Skip to content

Commit

Permalink
docs: isolate the pup installation command so that running composer…
Browse files Browse the repository at this point in the history
… -- pup <something> doesn't error out when pup isn't installed yet
  • Loading branch information
borkweb authored Jun 28, 2024
1 parent 1e3953f commit df48e4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Now we tell `composer` to download the `pup.phar` file into the `bin/` directory
```json
"scripts": {
"pup": [
"test -f ./bin/pup.phar || curl -o bin/pup.phar -L -C - https://github.com/stellarwp/pup/releases/download/VERSION/pup.phar",
"sh -c 'test -f ./bin/pup.phar || curl -o bin/pup.phar -L -C - https://github.com/stellarwp/pup/releases/download/VERSION/pup.phar'",
"@php ./bin/pup.phar"
]
}
Expand Down Expand Up @@ -87,4 +87,4 @@ cd pup
composer install
```

Optionally, you can add the `pup` directory to your `$PATH`.
Optionally, you can add the `pup` directory to your `$PATH`.

0 comments on commit df48e4a

Please sign in to comment.