We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f283af0 commit 8e3e13fCopy full SHA for 8e3e13f
scripts/download-oas.sh
@@ -20,7 +20,7 @@ fi
20
21
if [[ -z ${OAS_API_VERSIONS} ]]; then
22
echo "No API version passed, using ${ROOTDIR}/api-versions.json"
23
- OAS_API_VERSIONS="${ROOTDIR}/api-versions.json"
+ OAS_API_VERSIONS="${ROOT_DIR}/api-versions.json"
24
fi
25
26
# Create temp directory to clone OAS repo
@@ -55,7 +55,7 @@ EOF
55
echo "Using ${apiVersion} for ${service}"
56
57
cd ${work_dir}/${OAS_REPO_NAME} > /dev/null
58
- git checkout -q $apiVersion
+ git checkout -q $apiVersion || (echo "version ${apiVersion} does not exist, using main instead" && git checkout -q main)
59
cd - > /dev/null
60
61
# Prioritize GA over Beta over Alpha versions
0 commit comments