GitHub
05/23/2023, 7:07 PMtag
env var
2. Tell user if it fails to download, unarchive or remove the downloaded archive
3. Tell user path to where executables are installed
4. Show user available commands
5. Ensure script valid against https://www.shellcheck.net/
❯ ./install.sh
Thanks for downloading the latest release of pact-ruby-standalone v1.92.0.
-----
Note:
-----
You can download a fixed version by setting the tag environment variable eg tag=v1.92.0
example:
curl -fsSL <https://raw.githubusercontent.com/pact-foundation/pact-ruby-standalone/master/install.sh> | tag=v1.92.0 sh
-------------
Downloading:
-------------
downloaded pact-1.92.0-osx.tar.gz
unarchived pact-1.92.0-osx.tar.gz
removed pact-1.92.0-osx.tar.gz
pact-ruby-standalone v1.92.0 installed to /Users/saf/dev/pact-foundation/pact-ruby-standalone/pact
-------------------
available commands:
-------------------
pact
pact-broker
pact-message
pact-mock-service
pact-plugin-cli
pact-provider-verifier
pact-publish
pact-stub-service
pactflow
tag=v2.0.1 ./install.sh
Thanks for downloading pact-ruby-standalone v2.0.1.
-------------
Downloading:
-------------
downloaded pact-2.0.1-osx-arm64.tar.gz
unarchived pact-2.0.1-osx-arm64.tar.gz
removed pact-2.0.1-osx-arm64.tar.gz
pact-ruby-standalone v2.0.1 installed to /Users/saf/dev/pact-foundation/pact-ruby-standalone/pact
-------------------
available commands:
-------------------
pact
pact-broker
pact-message
pact-mock-service
pact-plugin-cli
pact-provider-verifier
pact-publish
pact-stub-service
pactflow
Additional notes
1. Can be made sh
compliant by
• Changing #!/bin/bash
to #!/bin/sh
• Changing [[ condition ]]
to [ condition ]
pact-foundation/pact-ruby-standalone
✅ All checks have passed
7/7 successful checksGitHub
05/24/2023, 11:31 AM