(command.CommandList children: [ (C {(export)} {(Id.Lit_VarLike 'CURL=') (SQ (Token id:Id.Lit_Chars val:curl span_id:42))}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Id.Lit_LBracket '[')} {(-n)} {(DQ ($ Id.VSub_DollarName '$PROXY'))} {(Id.Lit_RBracket ']')} ) terminator: (Token id:Id.Op_Semi val:';' span_id:56) ) ] action: [ (C {(echo)} {(DQ ('Setting up and testing proxy'))}) (C {(export)} {(Id.Lit_VarLike 'http_proxy=') (http) (Id.Lit_Other ':') (//) (${ Id.VSub_Name PROXY)} ) (C {(export)} {(Id.Lit_VarLike 'https_proxy=') (https) (Id.Lit_Other ':') (//) (${ Id.VSub_Name PROXY)} ) (C {(export)} {(Id.Lit_VarLike 'GIT_SSL_NO_VERIFY=') (true)}) (C {(export)} {(Id.Lit_VarLike 'CURL=') (DQ ('curl -k -x http://') (${ Id.VSub_Name PROXY))}) (command.Simple words: [ {($ Id.VSub_DollarName '$CURL')} {(-s)} {(--connect-timeout)} {(1)} {(http) (Id.Lit_Other ':') (//www.ubuntu.com)} ] redirects: [ (redir.Redir op: (Token id:Id.Redir_Great val:'>' span_id:134) fd: -1 arg_word: {(/dev/null)} ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobNEqual left: {($ Id.VSub_QMark '$?')} right: {(0)} ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:150) ) ] action: [ (C {(echo)} {(DQ ('Error: proxy ') ($ Id.VSub_DollarName '$PROXY') (' not responding'))} ) (command.ControlFlow token: (Token id:Id.ControlFlow_Exit val:exit span_id:164) arg_word: {(1)} ) ] spids: [139 152] ) ] else_action: [(C {(echo)} {(DQ ('Using a proxy at ') ($ Id.VSub_DollarName '$PROXY'))})] ) ] spids: [45 58] ) ] else_action: [ (C {(echo)} { (DQ (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\$' span_id:188)) ('PROXY not defined, not defining ') (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\$' span_id:190)) ('http_proxy and ') (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\$' span_id:192)) (https_proxy) ) } ) ] ) ] )