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

Can't find homebrew_info.json #3

Closed
ofirgalcon opened this issue Sep 5, 2022 · 3 comments
Closed

Can't find homebrew_info.json #3

ofirgalcon opened this issue Sep 5, 2022 · 3 comments

Comments

@ofirgalcon
Copy link

homebrew_info.sh Error: /usr/local/munkireport/scripts/homebrew_info.sh: line 45: /cache/homebrew_info.json: No such file or directory

v1.5 on multiple devices

@tuxudo
Copy link
Collaborator

tuxudo commented Sep 7, 2022

Your homebrew instance is not configured correctly. Verify that you can run brew config on that Mac.

@jby
Copy link
Contributor

jby commented Sep 22, 2022

I can run brew config and still get this error.
On line 44 of the script you use $DIR to set the path for the homebrewfile, however the DIR variable is never set before that...

homebrewfile="$DIR/cache/homebrew_info.json"
echo "${BREWCONFIG}" > "${homebrewfile}"

The file is in /usr/local/munkireport/scripts/cache/homebrew_info.json, which would indicate that DIR ought to be /usr/local/munkireport/scripts

jby added a commit to jby/homebrew_info that referenced this issue Oct 10, 2022
@jby jby mentioned this issue Oct 10, 2022
tuxudo added a commit that referenced this issue Nov 15, 2022
@tuxudo
Copy link
Collaborator

tuxudo commented Nov 15, 2022

Fixed with version v1.6

@tuxudo tuxudo closed this as completed Nov 15, 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

No branches or pull requests

3 participants