From 7f386024e5d0089a9eec0cd728f74ccb9ea9de9a Mon Sep 17 00:00:00 2001 From: Curt Tudor Date: Mon, 25 Mar 2024 12:54:05 -0600 Subject: [PATCH] adjust generate_rest.sh --- bin/generate_rest.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bin/generate_rest.sh b/bin/generate_rest.sh index 9a8e8f05..9a719d81 100755 --- a/bin/generate_rest.sh +++ b/bin/generate_rest.sh @@ -9,10 +9,22 @@ command -v swagger >/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" + exit 1 } command -v swagger-codegen 2>&1 || { 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)