(command.CommandList children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'error='> name:error) op: assign_op.Equal rhs: {<no>} spids: [77] ) ] redirects: [] ) (command.WhileUntil keyword: <Id.KW_While while> cond: (condition.Shell commands:[(C {<read>} {<dest>})]) body: (command.DoGroup children: [ (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (C {<Id.Lit_LBracket '['>} {<-d>} {($ Id.VSub_DollarName dest)} {<Id.Lit_RBracket ']'>} ) ] ) action: [ (C {<echo>} {(DQ ($ Id.VSub_DollarName dest))}) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {<rmdir>} {($ Id.VSub_DollarName dest)}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'error='> name:error) op: assign_op.Equal rhs: {<yes>} spids: [116] ) ] redirects: [] ) ] ) ] spids: [89 100] ) (if_arm cond: (condition.Shell commands: [ (C {<Id.Lit_LBracket '['>} {<-f>} {($ Id.VSub_DollarName dest)} {<Id.Lit_RBracket ']'>} ) ] ) action: [ (C {<echo>} {(DQ <'Modifying '> ($ Id.VSub_DollarName dest))}) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {<-n>} {(DQ ($ Id.VSub_DollarName PKG_INSTALL_ROOT))} {<-a>} {(DQ ($ Id.VSub_DollarName PKG_INSTALL_ROOT))} {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {(DQ <'/'>)} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left: <Id.Lit_VarLike 'client_dest='> name: client_dest ) op: assign_op.Equal rhs: { (command_sub left_token: <Id.Left_Backtick '`'> child: (command.Pipeline children: [ (C {<echo>} {($ Id.VSub_DollarName dest)}) (C {<'/usr/bin/nawk'>} {<-v>} {<Id.Lit_VarLike 'rootdir='> (DQ ($ Id.VSub_DollarName PKG_INSTALL_ROOT)) } {(SQ <'{\n'> <'\t\t\t\t { print substr($0, length(rootdir)+1)} }'>)} ) ] negated: F stderr_indices: [] ) right: <Id.Backtick_Right '`'> ) } spids: [181] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left: <Id.Lit_VarLike 'savepath='> name: savepath ) op: assign_op.Equal rhs: {($ Id.VSub_DollarName PKGSAV) <'/awk'> (${ Id.VSub_Name client_dest) } spids: [213] ) ] redirects: [] ) ] spids: [152 178] ) ] else_action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'savepath='> name:savepath) op: assign_op.Equal rhs: {($ Id.VSub_DollarName PKGSAV) <'/awk'> (${ Id.VSub_Name dest)} spids: [224] ) ] redirects: [] ) ] redirects: [] ) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {<'/usr/sadm/install/scripts/cmdexec'>} {<'/usr/bin/awk'>} {<remove>} {($ Id.VSub_DollarName savepath)} {($ Id.VSub_DollarName dest)} ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'error='> name:error) op: assign_op.Equal rhs: {<yes>} spids: [249] ) ] redirects: [] ) ] ) ] spids: [120 131] ) ] else_action: [ (command.AndOr ops: [Id.Op_DAmp] children: [ (C {<Id.Lit_LBracket '['>} {<-r>} {($ Id.VSub_DollarName dest)} {<Id.Lit_RBracket ']'>} ) (C {<echo>} {(DQ ($ Id.VSub_DollarName dest))}) ] ) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {<rm>} {<-f>} {($ Id.VSub_DollarName dest)}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'error='> name:error) op: assign_op.Equal rhs: {<yes>} spids: [281] ) ] redirects: [] ) ] ) ] redirects: [] ) ] ) redirects: [] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName error))} {<Id.Lit_Equals '='>} {<yes>} {<Id.Lit_RBracket ']'>} ) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<2>}) ] ) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<0>}) ] )