• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Installer Check to see if it's an Intel Mac
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Installer Check to see if it's an Intel Mac


  • Subject: Re: Installer Check to see if it's an Intel Mac
  • From: Graham J Lee <email@hidden>
  • Date: Mon, 29 May 2006 21:42:18 +0100

On 29/5/06 21:23, Sherm Pendley wrote:
On May 29, 2006, at 3:39 PM, Graham J Lee wrote:

On 29/5/06 18:29, Matthew Brewer wrote:
The suggestion to use ³arch² is fine, but I¹m not well acquainted with
scripting of any sort. So, I can call this command, and it returns a value.
And I would assume I would want to check that it is ³i386² and break if it
isn¹t (via the InstallationCheck returning a determined value of 16-31, from
what I understand).

mabinogi:~ leeg$ if [ `arch` = 'i386' ]; then echo "beige hardware" ; elif [ `arch` = 'ppc' ]; then echo "white hardware" ; else echo "step away from the cube..."; fi

You can't just make stuff up and expect the installer to understand it. The InstallationCheck documentation clearly states that the return value of the script is used here, not the output it prints to stdout.



Yes, I know. I also know that Matthew was asking about conditions in shell scripts, and gave an example. I'm not doing all the work for him, as he's not paying me ;-)
--
Graham Lee
UNIX Systems Manager,
Oxford Physics Practical Course
http://users.ox.ac.uk/~wadh1342
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Installer Check to see if it's an Intel Mac
      • From: Cameron Hayne <email@hidden>
References: 
 >RE: Installer Check to see if it's an Intel Mac (From: Matthew Brewer <email@hidden>)
 >Re: Installer Check to see if it's an Intel Mac (From: Graham J Lee <email@hidden>)
 >Re: Installer Check to see if it's an Intel Mac (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: NSMatrix -objectValue always gives 1. What good is that?
  • Next by Date: Re: Installer Check to see if it's an Intel Mac
  • Previous by thread: Re: Installer Check to see if it's an Intel Mac
  • Next by thread: Re: Installer Check to see if it's an Intel Mac
  • Index(es):
    • Date
    • Thread