mirror of
https://github.com/openziti/zrok.git
synced 2024-11-25 17:43:53 +01:00
adjust generate_rest.sh
This commit is contained in:
parent
831c6cb4b7
commit
7f386024e5
@ -9,10 +9,22 @@ command -v swagger >/dev/null 2>&1 || {
|
|||||||
|
|
||||||
command -v openapi >/dev/null 2>&1 || {
|
command -v openapi >/dev/null 2>&1 || {
|
||||||
echo >&2 "command 'openapi' not installed. see: https://www.npmjs.com/package/openapi-client for installation"
|
echo >&2 "command 'openapi' not installed. see: https://www.npmjs.com/package/openapi-client for installation"
|
||||||
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
command -v swagger-codegen 2>&1 || {
|
command -v swagger-codegen 2>&1 || {
|
||||||
echo >&2 "command 'swagger-codegen. see: https://github.com/swagger-api/swagger-codegen for installation"
|
echo >&2 "command 'swagger-codegen. see: https://github.com/swagger-api/swagger-codegen for installation"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
command -v openapi-generator-cli 2>&1 || {
|
||||||
|
echo >&2 "command 'openapi-generator-cli. see: https://www.npmjs.com/package/@openapitools/openapi-generator-cli for installation"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
command -v realpath 2>&1 || {
|
||||||
|
echo >&2 "command 'realpath. see: https://www.npmjs.com/package/realpath for installation"
|
||||||
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
scriptPath=$(realpath $0)
|
scriptPath=$(realpath $0)
|
||||||
|
Loading…
Reference in New Issue
Block a user