(command.CommandList children: [ (C {<set>} {<-o>} {<errexit>}) (C {<set>} {<-o>} {<nounset>}) (C {<set>} {<-o>} {<pipefail>}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:KUBE_ROOT) op: assign_op.Equal rhs: { (command_sub left_token: <Id.Left_DollarParen '$('> child: (C {<dirname>} {(DQ (${ Id.VSub_Name BASH_SOURCE))}) ) <'/..'> } spids: [73] ) ] ) (C {<source>} {(DQ (${ Id.VSub_Name KUBE_ROOT) <'/hack/lib/init.sh'>)}) (C {<readonly>} {<Id.Lit_VarLike 'branch='> (braced_var_sub token: <Id.VSub_Number 1> suffix_op: (suffix_op.Unary tok: <Id.VTest_ColonHyphen ':-'> arg_word: { (braced_var_sub token: <Id.VSub_Name KUBE_VERIFY_GIT_BRANCH> suffix_op: (suffix_op.Unary tok:<Id.VTest_ColonHyphen ':-'> arg_word:{<master>}) ) } ) ) } ) (command.ShFunction name: find_files body: (BraceGroup children: [ (C {<find>} {<.>} {<-not>} {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\('>)} {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\('>)} {<-wholename>} {(SQ <'./output'>)} {<-o>} {<-wholename>} {(SQ <'./_output'>)} {<-o>} {<-wholename>} {(SQ <'./_gopath'>)} {<-o>} {<-wholename>} {(SQ <'./release'>)} {<-o>} {<-wholename>} {(SQ <'./target'>)} {<-o>} {<-wholename>} {(SQ <'*/third_party/*'>)} {<-o>} {<-wholename>} {(SQ <'*/vendor/*'>)} {<-o>} {<-wholename>} {(SQ <'./staging/src/k8s.io/client-go/*vendor/*'>)} {<-o>} {<-wholename>} {(SQ <'./staging/src/k8s.io/client-go/pkg/*'>)} {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\)'>)} {<-prune>} {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\)'>)} {<-name>} {(SQ <.readonly>)} ) ] ) ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:IFS) op: assign_op.Equal rhs: { (single_quoted left: <Id.Left_DollarSingleQuote '$\''> tokens: [<Id.Char_OneChar '\\n'>] multiline: F ) } spids: [235] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:conflicts) op: assign_op.Equal rhs: { (sh_array_literal left: <Id.Op_LParen _> words: [ { (command_sub left_token: <Id.Left_DollarParen '$('> child: (command.Pipeline children: [ (C {<find_files>}) (C {<sed>} {(SQ <'s|/.readonly||'>)}) (command.WhileUntil keyword: <Id.KW_While while> cond: (condition.Shell commands: [ (command.Sentence child: (C {<read>} {<dir>}) terminator: <Id.Op_Semi _> ) ] ) body: (command.DoGroup children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:dir) op: assign_op.Equal rhs: { (braced_var_sub token: <Id.VSub_Name dir> suffix_op: (suffix_op.Unary tok: <Id.VOp1_Pound '#'> arg_word: {<.> <Id.Lit_Slash '/'>} ) ) } spids: [265] ) ] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.Simple words: [ {<kube> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <util> <Id.Lit_Colon ':'> <Id.Lit_Colon ':'> <has_changes_against_upstream_branch> } {(DQ (${ Id.VSub_Name branch))} { (DQ <'^'> (${ Id.VSub_Name dir) <'/[^/]*'> (word_part.EscapedLiteral token: <Id.Lit_EscapedChar '\\$'> ) ) } { (SQ < '/\\.readonly$|/BUILD$|/zz_generated|/\\.generated\\.|\\.proto$|\\.pb\\.go$' > ) } ] redirects: [ (redir op: <Id.Redir_Great '>'> loc: (redir_loc.Fd fd:1) arg: {<'/dev/null'>} ) ] do_fork: T ) terminator: <Id.Op_Semi _> ) ] ) action: [(C {<echo>} {(DQ (${ Id.VSub_Name dir))})] spids: [274 307] ) ] ) ] ) ) ] negated: F ) ) } ] ) } spids: [240] ) ] ) (C {<unset>} {<IFS>}) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} { (braced_var_sub token: <Id.VSub_Name conflicts> prefix_op: (Id.VSub_Pound) bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) } {<-gt>} {<0>} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.Simple words: [{<exec>}] redirects: [(redir op:<Id.Redir_GreatAnd '1>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})] do_fork: T ) (command.ForEach iter_name: dir iter_words: [ { (DQ (braced_var_sub token: <Id.VSub_Name conflicts> bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) ) } ] do_arg_iter: F body: (command.DoGroup children: [ (C {<echo>} { (DQ <'Found '> (${ Id.VSub_Name dir) <'/.readonly, but files changed compared to '> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) (${ Id.VSub_Name branch) (word_part.EscapedLiteral token: <Id.Lit_EscapedChar '\\"'> ) <' branch.'> ) } ) ] ) ) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] spids: [330 349] ) ] else_action: [(C {<echo>} {(DQ <'Readonly packages verified.'>)})] ) ] )