Re: Packages - how to make an uninstaller?
Ok, thanks - I get it. So in this example: ## Is Foo installed? ## if [[ -d "$3/Applications/Foo.app" ]] ; then Where is $3 coming from? I understand that $1 $2 $3 etc. are positional variables. Thanks, - Stephen On 3/28/17 2:52 PM, "Stephane Sudre" <dev.iceberg@gmail.com> wrote:
On Tue, Mar 28, 2017 at 11:30 PM, Mike Solin <mike@mikesolin.com> wrote:
It¹s built-in to the shell. See 'man bash'.
On Tue, Mar 28, 2017 at 2:28 PM, Stephen Kay <sk@karma-lab.com> wrote:
Thanks for the example! Excuse my ignorance, but what does '-d' command do? I've been trying to search for info on this, related to shell-scripting, but couldn't find anything.
To avoid reading more than 10 pages of the bash man pages to find the answer:
http://stackoverflow.com/questions/59838/check-if-a-directory-exists-in-a- shell-script
_______________________________________________ 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)
-
Stephen Kay