Skip to content

Commit

Permalink
Fix issue with cwd errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxudo committed Sep 26, 2024
1 parent 943320a commit 202ed39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/homebrew_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def get_brew_info(brew):
cachedir = '%s/cache' % os.path.dirname(os.path.realpath(__file__))

# We need this awful, ugly workaround because homebrew is evil when it comes to scripting as `root`
os.system("cd "+cachedir+"; /usr/bin/sudo -HE -u "+homebrew_owner+" "+brew+" config > homebrew_info.txt")
os.system("/usr/bin/sudo -HE -u "+homebrew_owner+" "+brew+" config > "+cachedir+"/homebrew_info.txt")

result = {}

Expand Down

0 comments on commit 202ed39

Please sign in to comment.