Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix picking the right version for Wrath/precendence (#3) #131

Closed
wants to merge 1 commit into from

Conversation

mooreatv
Copy link

Fixes #130 + a few lints (shellcheck)

@@ -57,6 +57,7 @@ skip_localization=
skip_zipfile=
skip_upload=
skip_cf_upload=
skip_invalid=
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

avoids shellcheck complaint

Comment on lines -1167 to +1169
for path in "${!toc_interfaces[@]}"; do
readarray -t sorted < <(for a in "${!toc_interfaces[@]}"; do echo "$a"; done | sort -r)
for path in "${sorted[@]}"; do
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the fix which makes it the extension less .toc doesn't go override the extension ones by sorting/having a consistent order

@@ -1544,6 +1546,7 @@ toc_interface_filter() {
if [ -n "$current_toc_version" ]; then # rewrite
sed -e $'1s/^\xEF\xBB\xBF//' -e 's/^## Interface:.*$/## Interface: '"$toc_version"'/' -e '/^## Interface-/d'
else # add
# shellcheck disable=SC1004
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

avoids the other shellcheck complaint from master

@nebularg nebularg closed this in 54c7948 Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Addon-Wrath.toc version not used if Addon.toc has a 3.x interface version
1 participant