Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
fix openapi location check (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
GErP83 authored Jul 2, 2024
1 parent b9b5474 commit 8a5c7ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions Plugins/Shared/scripts/CheckOpenApiSecurityScript.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ struct CheckOpenApiSecurityScript: ScriptProtocol {
\(ScriptEnum.directories.rawValue)
OPENAPI_YAML_LOCATION="${REPO_ROOT}/openapi";
# Check if the OpenAPI directory exists
if ! test -f ${OPENAPI_YAML_LOCATION}; then
if ! [ -d ${OPENAPI_YAML_LOCATION} ]; then
log "❗Openapi location not found."
exit 0
fi
Expand Down
3 changes: 1 addition & 2 deletions Plugins/Shared/scripts/CheckOpenApiValidationScript.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ struct CheckOpenApiValidationScript: ScriptProtocol {
\(ScriptEnum.directories.rawValue)
OPENAPI_YAML_LOCATION="${REPO_ROOT}/openapi";
# Check if the OpenAPI directory exists
if ! test -f ${OPENAPI_YAML_LOCATION}; then
if ! [ -d ${OPENAPI_YAML_LOCATION} ]; then
log "❗Openapi location not found."
exit 0
fi
Expand Down
3 changes: 1 addition & 2 deletions Plugins/Shared/scripts/RunOpenApiServerScript.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ struct RunOpenApiServerScript: ScriptProtocol {
\(ScriptEnum.directories.rawValue)
OPENAPI_YAML_LOCATION="${REPO_ROOT}/openapi";
# Check if the OpenAPI directory exists
if ! test -f ${OPENAPI_YAML_LOCATION}; then
if ! [ -d ${OPENAPI_YAML_LOCATION} ]; then
log "❗Openapi location not found."
exit 0
fi
Expand Down

0 comments on commit 8a5c7ea

Please sign in to comment.