RE: Scripts not being run and install failing
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Thread-index: AcTbz58DJwhTdX1ZSiy87NgqxCGfzwAAEDkA 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 (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Huyler, Christopher M