(CommandList children: [ (SimpleCommand words: [ {(curl)} {(-s)} {(https) (Lit_Other ':') (//repo1.maven.org/maven2/org/apache/rat/apache-rat/0.12/apache-rat-0.12.jar) } ] redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(apache-rat-0.12.jar)} spids:[69])] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:RAT) op: Equal rhs: {(DQ ('java -jar apache-rat-0.12.jar -x '))} spids: [74] ) ] spids: [74] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:RELEASE_DIR) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (Sentence child: (C {(cd)} { (DQ (CommandSubPart command_list: (CommandList children: [(C {(dirname)} {(DQ ($ VSub_Name '$BASH_SOURCE'))})] ) left_token: <Left_CommandSub '$('> spids: [85 91] ) ) } ) terminator: <Op_Semi ';'> ) (C {(pwd)}) ] ) left_token: <Left_CommandSub '$('> spids: [81 96] ) } spids: [80] ) ] spids: [80] ) (SimpleCommand words: [{($ VSub_Name '$RAT')} {($ VSub_Number '$1')}] redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(rat.txt)} spids:[106])] ) (SimpleCommand words: [ {(python)} {($ VSub_Name '$RELEASE_DIR') (/check-rat-report.py)} {($ VSub_Name '$RELEASE_DIR') (/rat_exclude_files.txt)} {(rat.txt)} ] redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(filtered_rat.txt)} spids:[120])] ) (C {(cat)} {(filtered_rat.txt)}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:UNAPPROVED) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(cat)} {(filtered_rat.txt)}) (C {(grep)} {(DQ ('NOT APPROVED'))}) (C {(wc)} {(-l)}) ] negated: False ) ] ) left_token: <Left_Backtick '`'> spids: [129 147] ) } spids: [128] ) ] spids: [128] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(DQ (0))} {(-eq)} {(DQ (${ VSub_Name UNAPPROVED))} {(Lit_Other ']')}) terminator: <Op_Semi ';'> ) ] action: [(C {(echo)} {(DQ ('No unapproved licenses'))})] spids: [16777215 169] ) ] else_action: [ (C {(echo)} {(DQ (${ VSub_Name UNAPPROVED) (' unapproved licences. Check rat report: rat.txt'))}) (C {(exit)} {(1)}) ] spids: [178 195] ) ] )