(command.CommandList
  children: [
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:TAG)
          op: assign_op.Equal
          rhs: 
            {<mesos-tidy-> 
              (command_sub
                left_token: <Id.Left_Backtick '`'>
                child: (C {<date>} {<Id.Lit_Other '+'> <Id.Lit_Other '%'> <s>})
              ) <-> ($ Id.VSub_DollarName '$RANDOM')
            }
          spids: [50]
        )
      ]
    )
    (C {<docker>} {<build>} {<--no-cache> <Id.Lit_Equals '='> <true>} {<-t>} 
      {($ Id.VSub_DollarName '$TAG')} {<'mesos-tidy/'>}
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:CHECKS)
          op: assign_op.Equal
          rhs: 
            {
              (braced_var_sub
                token: <Id.VSub_Name CHECKS>
                suffix_op: 
                  (suffix_op.Unary
                    tok: <Id.VTest_ColonHyphen ':-'>
                    arg_word: {(SQ <'-*,mesos-*'>)}
                  )
              )
            }
          spids: [94]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:CONFIGURE_FLAGS)
          op: assign_op.Equal
          rhs: 
            {
              (braced_var_sub
                token: <Id.VSub_Name CONFIGURE_FLAGS>
                suffix_op: 
                  (suffix_op.Unary
                    tok: <Id.VTest_ColonHyphen ':-'>
                    arg_word: {(SQ <--enable-optimize>)}
                  )
              )
            }
          spids: [110]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:MESOS_DIRECTORY)
          op: assign_op.Equal
          rhs: 
            {
              (command_sub
                left_token: <Id.Left_DollarParen '$('>
                child: 
                  (command.AndOr
                    ops: [Id.Op_DAmp]
                    children: [
                      (C {<cd>} 
                        {
                          (DQ 
                            (command_sub
                              left_token: <Id.Left_DollarParen '$('>
                              child: (C {<dirname>} {(DQ ($ Id.VSub_Number '$0'))})
                            ) <'/..'>
                          )
                        }
                      )
                      (C {<pwd>})
                    ]
                  )
              )
            }
          spids: [120]
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.Pipeline
                      children: [
                        (C 
                          {
                            (command_sub
                              left_token: <Id.Left_DollarParen '$('>
                              child: (C {<git>} {<diff-index>} {<--quiet>} {<HEAD>} {<-->})
                            )
                          }
                        )
                      ]
                      negated: T
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (C {<echo>} {(SQ <'Please commit or stash any changes before running `mesos-tidy`.'>)})
            (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
          ]
          spids: [144 161]
        )
      ]
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {<docker>} {<run>} {<--rm>} {<-v>} 
          {(DQ (${ Id.VSub_Name MESOS_DIRECTORY)) <Id.Lit_Colon ':'> <'/SRC'>} {<-e>} {<Id.Lit_VarLike 'CHECKS='> (DQ (${ Id.VSub_Name CHECKS))} {<-e>} 
          {<Id.Lit_VarLike 'CONFIGURE_FLAGS='> (DQ (${ Id.VSub_Name CONFIGURE_FLAGS))} {($ Id.VSub_DollarName '$TAG')}
        )
        (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
      ]
    )
    (C {<trap>} {(DQ <'docker rmi '> ($ Id.VSub_DollarName '$TAG'))} {<EXIT>})
  ]
)