(CommandList
  children: [
    (C {(set)} {(-euo)} {(pipefail)})
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:SCRIPT_DIR)
          op: Equal
          rhs: 
            {
              (DQ 
                (CommandSubPart
                  command_list: 
                    (CommandList
                      children: [
                        (AndOr
                          ops: [Op_DAmp]
                          children: [
                            (C {(cd)} 
                              {
                                (DQ 
                                  (CommandSubPart
                                    command_list: 
                                      (CommandList
                                        children: [
                                          (C {(dirname)} 
                                            {
                                              (DQ 
                                                (BracedVarSub
                                                  token: <VSub_Name BASH_SOURCE>
                                                  bracket_op: 
                                                    (ArrayIndex
                                                      expr: (ArithWord w:{(Lit_Digits 0)})
                                                    )
                                                  spids: [106 111]
                                                )
                                              )
                                            }
                                          )
                                        ]
                                      )
                                    left_token: <Left_CommandSub '$('>
                                    spids: [102 113]
                                  )
                                )
                              }
                            )
                            (C {(pwd)})
                          ]
                        )
                      ]
                    )
                  left_token: <Left_CommandSub '$('>
                  spids: [98 119]
                )
              )
            }
          spids: [96]
        )
      ]
      spids: [96]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:METEOR_WAREHOUSE_DIR)
          op: Equal
          rhs: 
            {
              (DQ 
                (BracedVarSub
                  token: <VSub_Name METEOR_WAREHOUSE_DIR>
                  suffix_op: 
                    (StringUnary
                      op_id: VTest_ColonHyphen
                      arg_word: {($ VSub_Name '$HOME') (Lit_Slash /) (.meteor)}
                    )
                  spids: [125 131]
                )
              )
            }
          spids: [123]
        )
      ]
      spids: [123]
    )
    (SimpleCommand
      words: [{(echo)} {(-n)} {(DQ ('Finding meteor-tool installation (can take a few seconds)...'))}]
      redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[143])]
    )
    (C {(cd)} {(DQ ($ VSub_Name '$SCRIPT_DIR') (/shell))})
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:METEOR_RELEASE)
          op: Equal
          rhs: 
            {
              (CommandSubPart
                command_list: 
                  (CommandList
                    children: [
                      (SimpleCommand
                        redirects: [
                          (Redir
                            op_id: Redir_Less
                            fd: 16777215
                            arg_word: {(.meteor/release)}
                            spids: [163]
                          )
                        ]
                      )
                    ]
                  )
                left_token: <Left_CommandSub '$('>
                spids: [162 165]
              )
            }
          spids: [161]
        )
      ]
      spids: [161]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (C {(Lit_Other '[')} {(DQ ($ VSub_Name '$METEOR_RELEASE'))} {(Lit_Other '=')} 
                  {(DQ ('METEOR@1.0.2'))} {(Lit_Other ']')}
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:TOOL_VERSION)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (Pipeline
                                children: [
                                  (C {(meteor)} {(show)} {(DQ ($ VSub_Name '$METEOR_RELEASE'))})
                                  (C {(grep)} {(-o)} {(SQ <'meteor-tool@[0-9a-zA-Z_.-]*'>)})
                                ]
                                negated: F
                              )
                            ]
                          )
                        left_token: <Left_CommandSub '$('>
                        spids: [197 215]
                      )
                    }
                  spids: [196]
                )
              ]
              spids: [196]
            )
          ]
          spids: [16777215 185]
        )
      ]
      else_action: [
        (Assignment
          keyword: Assign_None
          pairs: [
            (assign_pair
              lhs: (LhsName name:TOOL_VERSION)
              op: Equal
              rhs: 
                {
                  (CommandSubPart
                    command_list: 
                      (CommandList
                        children: [
                          (Pipeline
                            children: [
                              (C {(meteor)} {(show)} {(--ejson)} {($ VSub_Name '$METEOR_RELEASE')})
                              (C {(grep)} {(SQ <'^ *"tool":'>)})
                              (C {(sed)} {(-re)} {(SQ <'s/^.*"(meteor-tool@[^"]*)".*$/\\1/g'>)})
                            ]
                            negated: F
                          )
                        ]
                      )
                    left_token: <Left_CommandSub '$('>
                    spids: [229 256]
                  )
                }
              spids: [228]
            )
          ]
          spids: [228]
        )
      ]
      spids: [217 258]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:TOOLDIR)
          op: Equal
          rhs: 
            {
              (CommandSubPart
                command_list: 
                  (CommandList
                    children: [
                      (Pipeline
                        children: [
                          (C {(echo)} {($ VSub_Name '$TOOL_VERSION')})
                          (C {(tr)} {(Lit_Other '@')} {(/)})
                        ]
                        negated: F
                      )
                    ]
                  )
                left_token: <Left_CommandSub '$('>
                spids: [262 274]
              )
            }
          spids: [261]
        )
      ]
      spids: [261]
    )
    (SimpleCommand
      words: [{(echo)} {(DQ (' ') ($ VSub_Name '$TOOL_VERSION'))}]
      redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[284])]
    )
    (C {(readlink)} {(-f)} 
      {($ VSub_Name '$METEOR_WAREHOUSE_DIR') (/packages/) ($ VSub_Name '$TOOLDIR') 
        (/mt-os.linux.x86_64/dev_bundle)
      }
    )
  ]
)