(command.CommandList children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:REPO_ROOT) op: assign_op.Equal rhs: { (command_sub left_token: <Id.Left_DollarParen '$('> child: (C {<git>} {<rev-parse>} {<--show-toplevel>}) ) } spids: [10] ) ] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {($ Id.VSub_DollarName '$BOOTSTRAP_METHOD')} right: {(DQ <vagrant>)} ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.ShFunction name: do_on_node body: (BraceGroup children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:NODE) op: assign_op.Equal rhs: {($ Id.VSub_Number '$1')} spids: [46] ) ] ) (C {<shift>}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMMAND) op: assign_op.Equal rhs: {(DQ (${ Id.VSub_Star '*'))} spids: [53] ) ] ) (C {<echo>} {(DQ <'EXECUTING on '> ($ Id.VSub_DollarName '$NODE'))}) (C {<vagrant>} {<ssh>} {($ Id.VSub_DollarName '$NODE')} {<-c>} {(DQ ($ Id.VSub_DollarName '$COMMAND'))} ) ] ) ) ] spids: [20 35] ) ] else_action: [(C {<Id.Lit_Colon ':'>})] ) (command.ShFunction name: check_for_envvars body: (BraceGroup children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:FAILED_ENVVAR_CHECK) op: assign_op.Equal rhs: {<0>} spids: [103] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:REQUIRED_VARS) op: assign_op.Equal rhs: {(DQ (${ Id.VSub_At '@'))} spids: [107] ) ] ) (command.ForEach iter_name: ENVVAR iter_words: [ { (braced_var_sub token: <Id.VSub_Name REQUIRED_VARS> bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) } ] do_arg_iter: F body: (command.DoGroup children: [ (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Unary op_id: Id.BoolUnary_z child: { (braced_var_sub token: <Id.VSub_Name ENVVAR> prefix_op: (Id.VSub_Bang) ) } ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.Simple words: [ {<echo>} { (DQ <'Environment variable '> ($ Id.VSub_DollarName '$ENVVAR') <' must be set!'> ) } ] redirects: [ (redir op: <Id.Redir_GreatAnd '>&'> loc: (redir_loc.Fd fd:1) arg: {<2>} ) ] do_fork: T ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:FAILED_ENVVAR_CHECK) op: assign_op.Equal rhs: {<1>} spids: [161] ) ] ) ] spids: [132 146] ) ] ) ] ) ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobNEqual left: {($ Id.VSub_DollarName '$FAILED_ENVVAR_CHECK')} right: {<0>} ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.Sentence child: (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>}) terminator: <Id.Op_Semi _> ) ] spids: [171 184] ) ] ) ] ) ) (command.ShFunction name: load_configs body: (BraceGroup children: [ (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Unary op_id: Id.BoolUnary_f child: { (DQ ($ Id.VSub_DollarName '$REPO_ROOT') <'/bootstrap/config/bootstrap_config.sh'> ) } ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.DBracket expr: (bool_expr.LogicalNot child: (bool_expr.Unary op_id: Id.BoolUnary_f child: { (DQ ($ Id.VSub_DollarName '$REPO_ROOT') < '/bootstrap/config/bootstrap_config.sh.overrides' > ) } ) ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<echo>} { (DQ < 'Performing one-time move of bootstrap_config.sh to bootstrap_config.sh.overrides...' > ) } ) (C {<mv>} {($ Id.VSub_DollarName '$REPO_ROOT') <'/bootstrap/config/bootstrap_config.sh'> } {($ Id.VSub_DollarName '$REPO_ROOT') <'/bootstrap/config/bootstrap_config.sh.overrides'>} ) ] spids: [231 247] ) ] else_action: [ (command.Simple words: [ {<echo>} { (DQ < 'ERROR: both bootstrap_config.sh and bootstrap_config.sh.overrides exist!' > ) } ] redirects: [ (redir op: <Id.Redir_GreatAnd '>&'> loc: (redir_loc.Fd fd:1) arg: {<2>} ) ] do_fork: T ) (command.Simple words: [ {<echo>} { (DQ < 'Please move all overrides to bootstrap_config.sh.overrides and remove bootstrap_config.sh!' > ) } ] redirects: [ (redir op: <Id.Redir_GreatAnd '>&'> loc: (redir_loc.Fd fd:1) arg: {<2>} ) ] do_fork: T ) (command.ControlFlow token: <Id.ControlFlow_Exit exit> arg_word: {<1>} ) ] ) ] spids: [214 228] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:BOOTSTRAP_CONFIG_DEFAULTS) op: assign_op.Equal rhs: { (DQ ($ Id.VSub_DollarName '$REPO_ROOT') <'/bootstrap/config/bootstrap_config.sh.defaults'> ) } spids: [301] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:BOOTSTRAP_CONFIG_OVERRIDES) op: assign_op.Equal rhs: { (DQ ($ Id.VSub_DollarName '$REPO_ROOT') <'/bootstrap/config/bootstrap_config.sh.overrides'> ) } spids: [308] ) ] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.DBracket expr: (bool_expr.LogicalNot child: (bool_expr.Unary op_id: Id.BoolUnary_f child: {($ Id.VSub_DollarName '$BOOTSTRAP_CONFIG_DEFAULTS')} ) ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.Simple words: [ {<echo>} { (DQ < 'Bootstrap configuration defaults are missing! Your repository is corrupt; please restore ' > ($ Id.VSub_DollarName '$REPO_ROOT') <'/bootstrap/config/bootstrap_config.sh.defaults.'> ) } ] redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})] do_fork: T ) (command.ControlFlow token: <Id.ControlFlow_Exit exit> arg_word: {<1>} ) ] spids: [315 328] ) ] ) (C {<source>} {($ Id.VSub_DollarName '$BOOTSTRAP_CONFIG_DEFAULTS')}) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Unary op_id: Id.BoolUnary_f child: {($ Id.VSub_DollarName '$BOOTSTRAP_CONFIG_OVERRIDES')} ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.Sentence child: (C {<source>} {($ Id.VSub_DollarName '$BOOTSTRAP_CONFIG_OVERRIDES')}) terminator: <Id.Op_Semi _> ) ] spids: [356 367] ) ] ) ] ) ) ] )