Skip to content

Commit 5d028b1

Browse files
committed
Correct latest major version fix
1 parent 7210fde commit 5d028b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_scripts/download-docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ HDR=(--silent --location --fail --show-error -H "Authorization: ${TOKEN}" -H "X-
1414

1515
# The files that are involved when generating docs
1616
SCRIPT_FILES="_scripts/download-docs.sh _scripts/otp_flatten_docs _scripts/otp_flatten_ex_docs _scripts/otp_doc_sitemap.sh"
17-
LATEST_MAJOR_VSN=$(echo "$MAJOR_VSNs" | tr ' ' '\n' | sort -n | tail -1)
1817

1918
_get_vsns() {
2019
grep "${1}" "${OTP_VERSIONS_TABLE}" | awk '{print $1}' | sed 's/OTP-\(.*\)/\1/g'
@@ -38,6 +37,7 @@ _flatten_docs() {
3837
}
3938

4039
MAJOR_VSNs=$(_get_vsns "OTP-[0-9]\+\.0 " | sed 's/^\([0-9]\+\).*/\1/g')
40+
LATEST_MAJOR_VSN=$(echo "$MAJOR_VSNs" | tr ' ' '\n' | sort -n | tail -1)
4141
RINCLUDE=()
4242

4343
for VSN in ${MAJOR_VSNs}; do

0 commit comments

Comments
 (0)