It's not right yet because the capitalization of Firefox is incorrect. On a case sensitive filesystem this will not work. Also it's preferable to use absolute paths for the command line tools you invoke. Finally, removing a version of an application you are about to install is not necessarily a good idea. This may lead to unexpected results. On Mon, Jun 11, 2012 at 11:36 AM, vishnu kulkarni <vishnu5876@gmail.com> wrote:
Hi All,
I'm pretty new to scripting. I have written a script to be included as preflight script while packaging Firefox App. I have used the below script to Kill the app before it installs and to remove the app before installing the App. Can some one please validate the Script if it's right? Script works fine with the package.
#!/bin/sh ps -ef | awk '/firefox/ && !/awk/ {print $2}'|xargs kill -9
rm -rf /Applications/firefox.app
Thanks,
Vishnu _______________________________________________ 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: https://lists.apple.com/mailman/options/installer-dev/dev.iceberg%40gmail.co...
This email sent to dev.iceberg@gmail.com
_______________________________________________ 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: https://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Stephane Sudre