(command.CommandList children: [ (C {(set)} {(-euo)} {(pipefail)}) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:SCRIPT_DIR spids:[96]) op: Equal rhs: { (DQ (word_part.CommandSubPart command_list: (command.CommandList children: [ (command.AndOr ops: [Op_DAmp] children: [ (C {(cd)} { (DQ (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(dirname)} { (DQ (word_part.BracedVarSub token: <VSub_Name BASH_SOURCE> bracket_op: (bracket_op.ArrayIndex expr: (arith_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] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:METEOR_WAREHOUSE_DIR spids:[123]) op: Equal rhs: { (DQ (word_part.BracedVarSub token: <VSub_Name METEOR_WAREHOUSE_DIR> suffix_op: (suffix_op.StringUnary op_id: VTest_ColonHyphen arg_word: {($ VSub_DollarName '$HOME') (Lit_Slash /) (.meteor)} ) spids: [125 131] ) ) } spids: [123] ) ] spids: [123] ) (command.SimpleCommand words: [{(echo)} {(-n)} {(DQ ('Finding meteor-tool installation (can take a few seconds)...'))}] redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) (C {(cd)} {(DQ ($ VSub_DollarName '$SCRIPT_DIR') (/shell))}) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:METEOR_RELEASE spids:[161]) op: Equal rhs: { (word_part.CommandSubPart command_list: (command.CommandList children: [ (command.SimpleCommand redirects: [ (redir.Redir op: <Redir_Less '<'> fd: 16777215 arg_word: {(.meteor/release)} ) ] ) ] ) left_token: <Left_CommandSub '$('> spids: [162 165] ) } spids: [161] ) ] spids: [161] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {(DQ ($ VSub_DollarName '$METEOR_RELEASE'))} {(Lit_Other '=')} {(DQ ('METEOR@1.0.2'))} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:TOOL_VERSION spids:[196]) op: Equal rhs: { (word_part.CommandSubPart command_list: (command.CommandList children: [ (command.Pipeline children: [ (C {(meteor)} {(show)} {(DQ ($ VSub_DollarName '$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: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:TOOL_VERSION spids:[228]) op: Equal rhs: { (word_part.CommandSubPart command_list: (command.CommandList children: [ (command.Pipeline children: [ (C {(meteor)} {(show)} {(--ejson)} {($ VSub_DollarName '$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] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:TOOLDIR spids:[261]) op: Equal rhs: { (word_part.CommandSubPart command_list: (command.CommandList children: [ (command.Pipeline children: [ (C {(echo)} {($ VSub_DollarName '$TOOL_VERSION')}) (C {(tr)} {(Lit_Other '@')} {(/)}) ] negated: F ) ] ) left_token: <Left_CommandSub '$('> spids: [262 274] ) } spids: [261] ) ] spids: [261] ) (command.SimpleCommand words: [{(echo)} {(DQ (' ') ($ VSub_DollarName '$TOOL_VERSION'))}] redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) (C {(readlink)} {(-f)} {($ VSub_DollarName '$METEOR_WAREHOUSE_DIR') (/packages/) ($ VSub_DollarName '$TOOLDIR') (/mt-os.linux.x86_64/dev_bundle) } ) ] )