Re: pwd in preinstall and dummy component package folder permissions.
Re: pwd in preinstall and dummy component package folder permissions.
- Subject: Re: pwd in preinstall and dummy component package folder permissions.
- From: Sachin Porwal <email@hidden>
- Date: Wed, 14 Apr 2010 01:06:59 +0530
Actually in preinstall script (shell script) i am trying to find out the parent folder of preinstall script so that i can invoke a binary placed parallel to the script. The preinstall script is part of a pkg (10.4 pkg) and placed at '<.pkg>/Contents/Resources/' folder. My point is how should i find out the absolute path to Resources folder from preinstall script.
Thanks,
Sachin
On Mon, Apr 12, 2010 at 8:54 PM, Karl Kuehn
<email@hidden> wrote:
On Apr 12, 2010, at 1:01 AM, Sachin Porwal wrote:
> I tried to use `pwd` in preinstall script which is contained in 10.4 pkg but it did not work as expected. I am always getting the root folder ('/') as the return value in preinstall script. It seems like `pwd` will not work correctly with 10.4 pkg & we need to use '$0/../' only.
>
> Can you please confirm this??
Why exactly do you think that this is the wrong value? "cd"ing to / seems reasonable to me, and then that is the value that pwd should return.
--
Karl Kuehn
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