Brew is not identified as a command inside postinstall script of pkgbuild
(MacOS)
#20
Unanswered
hxvxt2
asked this question in
Everyday usage
Replies: 2 comments 6 replies
-
I assume the error you got is from your postinstall script trying to run It's almost certainly a |
Beta Was this translation helpful? Give feedback.
4 replies
-
You should be able to preload sudo credentials for the user by running |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Guys,
I have a small shell script that installs
Brew
if it is not already installed.The script runs fine when I run it as a standalone shell script. So I tried to create a package using the
pkgbuild
utility. But once inside the package the same script fails to identify Brew as a command, even thoughBrew
is installed.I enabled install logs and I can see
Sep 29 22:48:32 hxvxt2 installd[80453]: ./postinstall: /tmp/PKInstallSandbox.42j7tU/Scripts/org.mybinary.0.0.4.sDKM7K/postinstall: line 16: brew: command not found
What am I missing?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions