From df48e4ae68cc36c456cf50549613c22670cf31ab Mon Sep 17 00:00:00 2001 From: Matthew Batchelder Date: Fri, 28 Jun 2024 08:33:47 -0400 Subject: [PATCH] docs: isolate the `pup` installation command so that running composer -- pup doesn't error out when pup isn't installed yet --- docs/installation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index a89d838..c5b6c52 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -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" ] } @@ -87,4 +87,4 @@ cd pup composer install ``` -Optionally, you can add the `pup` directory to your `$PATH`. \ No newline at end of file +Optionally, you can add the `pup` directory to your `$PATH`.