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

The getJSONValue function is unable to find keys with hyphen in the key name #1586

Open
kryptonit1 opened this issue Apr 4, 2024 · 0 comments

Comments

@kryptonit1
Copy link
Contributor

I'm trying to create a label that uses the getJSONValue function and the function seems to be unable to find keys that has a hyphen in the key name.

Command:
getJSONValue "$(curl -fs "https://updates.signiant.com/signiant_app/signiant-app-info-mac.json")" "signiant-app.osx.file"

Result:

getJSONValue:1: no matches found: (tested to work with up to 1GB string and 2GB file).
getJSONValue:2: no matches found: (using dot or bracket notation).
execution error: Error: ReferenceError: Can't find variable: app (-2700)

The getJSONValue function seems to ignore signiant- in the key path (signiant-app.osx.file).

The updated function in PR #912 does not seem to have this problem.

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