algolia / algoliasearch-zendesk

Integrate Algolia within your Zendesk Help Center in minutes.
https://community.algolia.com/zendesk
Other
21 stars 12 forks source link

fix: use bash in release scripts #163

Closed sbellone closed 2 years ago

sbellone commented 2 years ago

When trying to update the documentation I got the following errors:

$ npm run release:docs

> algoliasearch.zendesk-hc.tools@2.30.1 release:docs /home/sylvain/dev/algoliasearch/algoliasearch-zendesk
> ./scripts/release-docs.sh

./scripts/release-docs.sh: 7: [[: not found
./scripts/release-docs.sh: 14: read: Illegal option -n

This is because some syntax is not supported by sh: https://stackoverflow.com/a/3401197/1326281

Also: Use the version from package.json by default when the input is empty

sh471 commented 1 year ago

merging the pull request, Thank you so much.