Skip to content

Commit

Permalink
fix: not use xmllint
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnnnn committed May 18, 2024
1 parent d42dc3e commit c7a238d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- name: asdf_plugin_test
Expand Down
2 changes: 1 addition & 1 deletion lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ list_all_versions() {
local url xml_data versions
url="$MAVEN_REPO/group-index.xml"
xml_data=$(curl -s "$url")
versions=$(echo "$xml_data" | xmllint --xpath '//aapt2/@versions' - | sed 's/versions=//' | sed 's/"//g' | sed 's/,/\n/g')
versions=$(echo "$xml_data" | grep -o '<aapt2 versions="[^"]*"' | sed 's/<aapt2 versions="//' | sed 's/"//g' | sed 's/,/\n/g')
echo "$versions"
}

Expand Down

0 comments on commit c7a238d

Please sign in to comment.