File tree Expand file tree Collapse file tree 7 files changed +13
-13
lines changed Expand file tree Collapse file tree 7 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /usr/ bin/env bash
2
2
set -eo pipefail
3
3
4
4
ROOT_DIR=$( git rev-parse --show-toplevel)
@@ -19,7 +19,7 @@ if [[ ! ${OAS_REPO} || -d ${OAS_REPO} ]]; then
19
19
fi
20
20
21
21
if [[ -z ${OAS_API_VERSIONS} ]]; then
22
- echo " No API version passed, using ${ROOTDIR } /api-versions-lock.json"
22
+ echo " No API version passed, using ${ROOT_DIR } /api-versions-lock.json"
23
23
OAS_API_VERSIONS=" ${ROOT_DIR} /api-versions-lock.json"
24
24
fi
25
25
@@ -31,15 +31,15 @@ if [[ ! ${work_dir} || -d {work_dir} ]]; then
31
31
fi
32
32
trap " rm -rf ${work_dir} " EXIT # Delete temp directory on exit
33
33
34
- if [ -d ${ROOT_DIR} /oas ]; then
34
+ if [ -d " ${ROOT_DIR} /oas" ]; then
35
35
echo " OAS folder found. Will be removed"
36
- rm -r ${ROOT_DIR} /oas
36
+ rm -r " ${ROOT_DIR} /oas"
37
37
fi
38
38
39
39
# Move oas to root level
40
- mkdir ${ROOT_DIR} /oas
41
- cd ${work_dir}
42
- git clone ${OAS_REPO} --quiet
40
+ mkdir " ${ROOT_DIR} /oas"
41
+ cd " ${work_dir} "
42
+ git clone " ${OAS_REPO} " --quiet
43
43
44
44
for service_dir in ${work_dir} /${OAS_REPO_NAME} /services/* ; do
45
45
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /usr/ bin/env bash
2
2
# This script clones the SDK repo and updates it with the generated API modules
3
3
# Pre-requisites: Java, goimports, Go
4
4
set -eo pipefail
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /usr/ bin/env bash
2
2
# This script clones the SDK repo and updates it with the generated API modules
3
3
# Pre-requisites: Java, goimports, Go
4
4
set -eo pipefail
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /usr/ bin/env bash
2
2
# This script clones the SDK repo and updates it with the generated API modules
3
3
# Pre-requisites: Java
4
4
set -eo pipefail
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /usr/ bin/env bash
2
2
# This script clones the SDK repo and updates it with the generated API modules
3
3
# Pre-requisites: Java, goimports, Go
4
4
set -eo pipefail
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /usr/ bin/env bash
2
2
3
3
# This script is used to manage the project, only used for installing the required tools for now
4
4
# Usage: ./project.sh [action]
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /usr/ bin/env bash
2
2
# This script pushes the generated SDK to its repo and creates a PR
3
3
set -eo pipefail
4
4
You can’t perform that action at this time.
0 commit comments