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

Recommend change to using xmllint for changes to xpath in Big Sur #6

Open
feolaney opened this issue Mar 7, 2022 · 0 comments
Open

Comments

@feolaney
Copy link

feolaney commented Mar 7, 2022

Change lines 124, 148, and 149 from:
124compGrpSize=$( echo $compGroupData | xpath "//computer_groups/size/text()" )
148 compGrpName=$( echo $compGroupData | xpath "//computer_groups/computer_group[${element}]/name/text()" )
149 compGrpID=$( echo $compGroupData | xpath "//computer_groups/computer_group[${element}]/id/text()" )

to the following:
124compGrpSize=$( echo $compGroupData | xmllint --xpath "//computer_groups/size/text()" -)
148 compGrpName=$( echo $compGroupData | xmllint --xpath "//computer_groups/computer_group[${element}]/name/text()" -)
149 compGrpID=$( echo $compGroupData | xmllint --xpath "//computer_groups/computer_group[${element}]/id/text()" -)

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

No branches or pull requests

1 participant