(command.CommandList children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:TAG spids:[50]) op: Equal rhs: {(mesos-tidy-) (word_part.CommandSubPart command_list: (command.CommandList children: [(C {(date)} {(Lit_Other '+') (Lit_Other '%') (s)})] ) left_token: <Left_Backtick '`'> spids: [52 58] ) (-) ($ VSub_DollarName '$RANDOM') } spids: [50] ) ] spids: [50] ) (C {(docker)} {(build)} {(--no-cache) (Lit_Other '=') (true)} {(-t)} {($ VSub_DollarName '$TAG')} {(mesos-tidy/)} ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:CHECKS spids:[92]) op: Equal rhs: { (word_part.BracedVarSub token: <VSub_Name CHECKS> suffix_op: (suffix_op.StringUnary op_id: VTest_ColonHyphen arg_word: {(SQ <'-*,mesos-*'>)} ) spids: [93 99] ) } spids: [92] ) ] spids: [92] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:CONFIGURE_FLAGS spids:[108]) op: Equal rhs: { (word_part.BracedVarSub token: <VSub_Name CONFIGURE_FLAGS> suffix_op: (suffix_op.StringUnary op_id: VTest_ColonHyphen arg_word: {(SQ <--enable-optimize>)} ) spids: [109 115] ) } spids: [108] ) ] spids: [108] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:MESOS_DIRECTORY spids:[118]) op: Equal rhs: { (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 ($ VSub_Number '$0'))})] ) left_token: <Left_CommandSub '$('> spids: [123 129] ) (/..) ) } ) (C {(pwd)}) ] ) ] ) left_token: <Left_CommandSub '$('> spids: [119 136] ) } spids: [118] ) ] spids: [118] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.Pipeline children: [ (C { (word_part.CommandSubPart command_list: (command.CommandList children: [(C {(git)} {(diff-index)} {(--quiet)} {(HEAD)} {(--)})] ) left_token: <Left_CommandSub '$('> spids: [146 156] ) } ) ] negated: T ) terminator: <Op_Semi ';'> ) ] action: [ (C {(echo)} {(SQ <'Please commit or stash any changes before running `mesos-tidy`.'>)}) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] spids: [16777215 159] ) ] spids: [16777215 173] ) (command.AndOr ops: [Op_DPipe] children: [ (C {(docker)} {(run)} {(--rm)} {(-v)} {(DQ (${ VSub_Name MESOS_DIRECTORY)) (Lit_Other ':') (/SRC)} {(-e)} {(Lit_VarLike 'CHECKS=') (DQ (${ VSub_Name CHECKS))} {(-e)} {(Lit_VarLike 'CONFIGURE_FLAGS=') (DQ (${ VSub_Name CONFIGURE_FLAGS))} {($ VSub_DollarName '$TAG')} ) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] ) (C {(trap)} {(DQ ('docker rmi ') ($ VSub_DollarName '$TAG'))} {(EXIT)}) ] )