Home Forums Software InstaDMG InstaDMG Variables

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #380037
    imonkey
    Participant

    Hi All,
    I’m interesting in finding out more about how InstaDMG uses variables, or more precisely, how scripts that get invoked by InstaDMG use variables.
    For example, good old $3—from what I have read this is the “current start-up drive” good for using install paths.

    So my questions are:

    1. How is this variable set? I’ve looked all though the instadmg.bash file and can’t seem to find how it is set.
    2. If there’s $3 then surely there must be $1, $2 and maybe $4, etc. What are these used for if any?
    3. Are these variables only used by InstaDMG? I’ve heard the loginwindow can use $1 and the current user.

    Excuse the newby question and thanks in advance for any insight.

    #380039
    Allister Banks
    Participant

    Hey there,

    This is BASH, right, not something InstaDMG-specific.
    According to the guide, variables set to a built-in position, like $3, may be referred to as positional parameters:
    [url]http://tldp.org/LDP/abs/html/othertypesv.html[/url]

    Let us know if there’s something you’re trying to accomplish that you need info on, look in the postflight for createUser if you’d like another BASH scripting example.

    Allister

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Comments are closed