Re: Script help
Re: Script help
- Subject: Re: Script help
- From: Stephane Sudre <email@hidden>
- Date: Mon, 11 Jun 2012 12:29:41 -0700
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 <email@hidden> 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 (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
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
References: | |
| >Script help (From: vishnu kulkarni <email@hidden>) |