Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions scripts/download-oas.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -eo pipefail

ROOT_DIR=$(git rev-parse --show-toplevel)
Expand All @@ -19,7 +19,7 @@ if [[ ! ${OAS_REPO} || -d ${OAS_REPO} ]]; then
fi

if [[ -z ${OAS_API_VERSIONS} ]]; then
echo "No API version passed, using ${ROOTDIR}/api-versions-lock.json"
echo "No API version passed, using ${ROOT_DIR}/api-versions-lock.json"
OAS_API_VERSIONS="${ROOT_DIR}/api-versions-lock.json"
fi

Expand All @@ -31,15 +31,15 @@ if [[ ! ${work_dir} || -d {work_dir} ]]; then
fi
trap "rm -rf ${work_dir}" EXIT # Delete temp directory on exit

if [ -d ${ROOT_DIR}/oas ]; then
if [ -d "${ROOT_DIR}/oas" ]; then
echo "OAS folder found. Will be removed"
rm -r ${ROOT_DIR}/oas
rm -r "${ROOT_DIR}/oas"
fi

# Move oas to root level
mkdir ${ROOT_DIR}/oas
cd ${work_dir}
git clone ${OAS_REPO} --quiet
mkdir "${ROOT_DIR}/oas"
cd "${work_dir}"
git clone "${OAS_REPO}" --quiet

for service_dir in ${work_dir}/${OAS_REPO_NAME}/services/*; do

Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-sdk/generate-sdk.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This script clones the SDK repo and updates it with the generated API modules
# Pre-requisites: Java, goimports, Go
set -eo pipefail
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-sdk/languages/go.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This script clones the SDK repo and updates it with the generated API modules
# Pre-requisites: Java, goimports, Go
set -eo pipefail
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-sdk/languages/java.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This script clones the SDK repo and updates it with the generated API modules
# Pre-requisites: Java
set -eo pipefail
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-sdk/languages/python.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This script clones the SDK repo and updates it with the generated API modules
# Pre-requisites: Java, goimports, Go
set -eo pipefail
Expand Down
2 changes: 1 addition & 1 deletion scripts/project.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# This script is used to manage the project, only used for installing the required tools for now
# Usage: ./project.sh [action]
Expand Down
2 changes: 1 addition & 1 deletion scripts/sdk-create-pr.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This script pushes the generated SDK to its repo and creates a PR
set -eo pipefail

Expand Down