(command.CommandList
  children: [
    (command.Simple
      blame_tok: <set>
      more_env: []
      words: [{<set>} {<-euo>} {<pipefail>}]
      redirects: []
      do_fork: T
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'SCRIPT_DIR='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'SCRIPT_DIR='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'SCRIPT_DIR='> name:SCRIPT_DIR)
          op: assign_op.Equal
          rhs: 
            {
              (DQ 
                (CommandSub
                  left_token: <Id.Left_DollarParen '$('>
                  child: 
                    (command.AndOr
                      children: [
                        (command.Simple
                          blame_tok: <cd>
                          more_env: []
                          words: [
                            {<cd>}
                            {
                              (DQ 
                                (CommandSub
                                  left_token: <Id.Left_DollarParen '$('>
                                  child: 
                                    (command.Simple
                                      blame_tok: <dirname>
                                      more_env: []
                                      words: [
                                        {<dirname>}
                                        {
                                          (DQ 
                                            (BracedVarSub
                                              left: <Id.Left_DollarBrace '${'>
                                              token: <Id.VSub_Name BASH_SOURCE>
                                              var_name: BASH_SOURCE
                                              bracket_op: 
                                                (bracket_op.ArrayIndex
                                                  expr: {<Id.Lit_Digits 0>}
                                                )
                                              right: <Id.Right_DollarBrace '}'>
                                            )
                                          )
                                        }
                                      ]
                                      redirects: []
                                      do_fork: T
                                    )
                                  right: <Id.Eof_RParen _>
                                )
                              )
                            }
                          ]
                          redirects: []
                          do_fork: T
                        )
                        (command.Simple
                          blame_tok: <pwd>
                          more_env: []
                          words: [{<pwd>}]
                          redirects: []
                          do_fork: T
                        )
                      ]
                      ops: [<Id.Op_DAmp _>]
                    )
                  right: <Id.Eof_RParen _>
                )
              )
            }
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'METEOR_WAREHOUSE_DIR='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'METEOR_WAREHOUSE_DIR='>
          lhs: 
            (sh_lhs_expr.Name
              left: <Id.Lit_VarLike 'METEOR_WAREHOUSE_DIR='>
              name: METEOR_WAREHOUSE_DIR
            )
          op: assign_op.Equal
          rhs: 
            {
              (DQ 
                (BracedVarSub
                  left: <Id.Left_DollarBrace '${'>
                  token: <Id.VSub_Name METEOR_WAREHOUSE_DIR>
                  var_name: METEOR_WAREHOUSE_DIR
                  suffix_op: 
                    (suffix_op.Unary
                      op: <Id.VTest_ColonHyphen _>
                      arg_word: {($ Id.VSub_DollarName HOME) <Id.Lit_Slash '/'> <.meteor>}
                    )
                  right: <Id.Right_DollarBrace '}'>
                )
              )
            }
        )
      ]
      redirects: []
    )
    (command.Simple
      blame_tok: <echo>
      more_env: []
      words: [{<echo>} {<-n>} {(DQ <'Finding meteor-tool installation (can take a few seconds)...'>)}]
      redirects: [(Redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
      do_fork: T
    )
    (command.Simple
      blame_tok: <cd>
      more_env: []
      words: [{<cd>} {(DQ ($ Id.VSub_DollarName SCRIPT_DIR) <'/shell'>)}]
      redirects: []
      do_fork: T
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'METEOR_RELEASE='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'METEOR_RELEASE='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'METEOR_RELEASE='> name:METEOR_RELEASE)
          op: assign_op.Equal
          rhs: 
            {
              (CommandSub
                left_token: <Id.Left_DollarParen '$('>
                child: 
                  (command.Simple
                    blame_tok: <Id.Redir_Less '<'>
                    more_env: []
                    words: []
                    redirects: [
                      (Redir
                        op: <Id.Redir_Less '<'>
                        loc: (redir_loc.Fd fd:0)
                        arg: {<'.meteor/release'>}
                      )
                    ]
                    do_fork: F
                  )
                right: <Id.Eof_RParen _>
              )
            }
        )
      ]
      redirects: []
    )
    (command.If
      if_kw: <Id.KW_If if>
      arms: [
        (IfArm
          keyword: <Id.KW_If if>
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.Simple
                      blame_tok: <Id.Lit_LBracket '['>
                      more_env: []
                      words: [
                        {<Id.Lit_LBracket '['>}
                        {(DQ ($ Id.VSub_DollarName METEOR_RELEASE))}
                        {<Id.Lit_Equals '='>}
                        {(DQ <'METEOR@1.0.2'>)}
                        {<Id.Lit_RBracket ']'>}
                      ]
                      redirects: []
                      do_fork: T
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          then_kw: <Id.KW_Then then>
          action: [
            (command.ShAssignment
              left: <Id.Lit_VarLike 'TOOL_VERSION='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'TOOL_VERSION='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'TOOL_VERSION='> name:TOOL_VERSION)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (CommandSub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.Pipeline
                            children: [
                              (command.Simple
                                blame_tok: <meteor>
                                more_env: []
                                words: [{<meteor>} {<show>} {(DQ ($ Id.VSub_DollarName METEOR_RELEASE))}]
                                redirects: []
                                do_fork: T
                              )
                              (command.Simple
                                blame_tok: <grep>
                                more_env: []
                                words: [{<grep>} {<-o>} {(SQ <'meteor-tool@[0-9a-zA-Z_.-]*'>)}]
                                redirects: []
                                do_fork: T
                              )
                            ]
                            ops: [<Id.Op_Pipe _>]
                          )
                        right: <Id.Eof_RParen _>
                      )
                    }
                )
              ]
              redirects: []
            )
          ]
          spids: [168 185]
        )
      ]
      else_kw: <Id.KW_Else else>
      else_action: [
        (command.ShAssignment
          left: <Id.Lit_VarLike 'TOOL_VERSION='>
          pairs: [
            (AssignPair
              left: <Id.Lit_VarLike 'TOOL_VERSION='>
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'TOOL_VERSION='> name:TOOL_VERSION)
              op: assign_op.Equal
              rhs: 
                {
                  (CommandSub
                    left_token: <Id.Left_DollarParen '$('>
                    child: 
                      (command.Pipeline
                        children: [
                          (command.Simple
                            blame_tok: <meteor>
                            more_env: []
                            words: [
                              {<meteor>}
                              {<show>}
                              {<--ejson>}
                              {($ Id.VSub_DollarName METEOR_RELEASE)}
                            ]
                            redirects: []
                            do_fork: T
                          )
                          (command.Simple
                            blame_tok: <grep>
                            more_env: []
                            words: [{<grep>} {(SQ <'^ *"tool":'>)}]
                            redirects: []
                            do_fork: T
                          )
                          (command.Simple
                            blame_tok: <sed>
                            more_env: []
                            words: [{<sed>} {<-re>} {(SQ <'s/^.*"(meteor-tool@[^"]*)".*$/\\1/g'>)}]
                            redirects: []
                            do_fork: T
                          )
                        ]
                        ops: [<Id.Op_Pipe _> <Id.Op_Pipe _>]
                      )
                    right: <Id.Eof_RParen _>
                  )
                }
            )
          ]
          redirects: []
        )
      ]
      fi_kw: <Id.KW_Fi fi>
      redirects: []
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'TOOLDIR='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'TOOLDIR='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'TOOLDIR='> name:TOOLDIR)
          op: assign_op.Equal
          rhs: 
            {
              (CommandSub
                left_token: <Id.Left_DollarParen '$('>
                child: 
                  (command.Pipeline
                    children: [
                      (command.Simple
                        blame_tok: <echo>
                        more_env: []
                        words: [{<echo>} {($ Id.VSub_DollarName TOOL_VERSION)}]
                        redirects: []
                        do_fork: T
                      )
                      (command.Simple
                        blame_tok: <tr>
                        more_env: []
                        words: [{<tr>} {<Id.Lit_At '@'>} {<'/'>}]
                        redirects: []
                        do_fork: T
                      )
                    ]
                    ops: [<Id.Op_Pipe _>]
                  )
                right: <Id.Eof_RParen _>
              )
            }
        )
      ]
      redirects: []
    )
    (command.Simple
      blame_tok: <echo>
      more_env: []
      words: [{<echo>} {(DQ <' '> ($ Id.VSub_DollarName TOOL_VERSION))}]
      redirects: [(Redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
      do_fork: T
    )
    (command.Simple
      blame_tok: <readlink>
      more_env: []
      words: [
        {<readlink>}
        {<-f>}
        {($ Id.VSub_DollarName METEOR_WAREHOUSE_DIR) <'/packages/'> ($ Id.VSub_DollarName TOOLDIR) 
          <'/mt-os.linux.x86_64/dev_bundle'>
        }
      ]
      redirects: []
      do_fork: T
    )
  ]
)