RE: Scripts not being run and install failing
RE: Scripts not being run and install failing
- Subject: RE: Scripts not being run and install failing
- From: "Huyler, Christopher M" <email@hidden>
- Date: Mon, 6 Dec 2004 15:22:53 -0500
- Thread-topic: Scripts not being run and install failing
Make sure you specify a shell on the first line. For example:
#!/bin/sh
echo "Hello World"
exit 0
If you are doing this then please post your script so we can see it and
check for other errors. To be safe, always edit your script using a
plain text editor such as vi or emacs. A program like TextEdit may save
your file in RTF or another format which /bin/sh cannot read. Invisible
characters such as DOS or Mac carriage returns can also cause a script
to fail (You want UNIX line returns). Once you have created the file
with a simple text editor, when you open it with TextEdit or Xcode they
should honor the encoding and line returns that you used when first
creating the file.
~ Chris
> Hello,
> I am having trouble getting my pre/post/etc scripts to successfully
> run. I created a new project in Package Maker that installs a since
> text file and runs a simple 'preflight' script that echos hello to
> stdout. The permissions on "preflight" are a+rwx. No matter what I do,
> installation always fails - log below. I can type
> "/Users/rcuprak/TESTAPPLE.pkg/Contents/Resources/preflight" at the
> cmdline and the script will run perfectly fine a return with an exit
> code of 0. Initially I thought it was a problem with Iceberg but then
I
> went back and created a test project from scratch with Package Maker.
> What's going on?
>
> Thanks,
> Ryan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden