AFP548

when you need to test a pesky installer

I found this article/code snippet: [url]http://www.jaharmi.com/2009/04/14/spot_problem_commands_in_apple_installer_package_scripts[/url] and the fellow seems known to several members of this community, and what he says/writes makes sense. Un-tested by me as yet (figured out my issue another way before I read all the hits I got on this search) but may be worth while for others. [code]$ find /path/to/installer.pkg -regex '.*/*\(flight\)' -or -regex '.*/*\(install\)' -or -regex '.*/*\(upgrade\)' -exec grep --with-filename --line-number '\(cp\|mv\|ln\|>{1,2}\|cat\|echo\|chown\|chmod\|rm\|srm\)' {} \;[/code]
Exit mobile version