(CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sftpacct) op: Equal rhs: {(DQ ('taylor@intuitive.com'))} spids: [11] ) ] spids: [11] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:tarballname) op: Equal rhs: {(DQ (AllFiles.tgz))} spids: [16] ) ] spids: [16] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:localsource) op: Equal rhs: {(DQ ($ VSub_Name '$HOME') ('/Desktop/Wicked Cool Scripts/scripts'))} spids: [21] ) ] spids: [21] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:remotedir) op: Equal rhs: {(DQ (/wicked/scripts))} spids: [27] ) ] spids: [27] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:timestamp) op:Equal rhs:{(DQ (.timestamp))} spids:[32])] spids: [32] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:count) op:Equal rhs:{(0)} spids:[37])] spids: [37] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(KW_Bang '!')} {(-d)} {(DQ ($ VSub_Name '$localsource'))} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (SimpleCommand words: [ {(echo)} { (DQ ($ VSub_Number '$0') (': Error: directory ') ($ VSub_Name '$localsource') (" doesn't exist?") ) } ] redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[74])] ) (C {(exit)} {(1)}) ] spids: [16777215 62] ) ] spids: [16777215 82] ) (C {(cd)} {(DQ ($ VSub_Name '$localsource'))}) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(KW_Bang '!')} {(-f)} {($ VSub_Name '$timestamp')} {(Lit_Other ']')}) terminator: <Op_Semi ';'> ) ] action: [ (ForEach iter_name: filename iter_words: [{(Lit_Other '*')}] do_arg_iter: False body: (DoGroup children: [ (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(-f)} {(DQ ($ VSub_Name '$filename'))} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:count) op: Equal rhs: { (ArithSubPart anode: (ArithBinary op_id: Arith_Plus left: (ArithWord w:{($ VSub_Name '$count')}) right: (ArithWord w:{(Lit_Digits 1)}) ) spids: [144 153] ) } spids: [143] ) ] spids: [143] ) ] spids: [16777215 140] ) ] spids: [16777215 156] ) ] spids: [122 159] ) spids: [118 16777215] ) ] spids: [16777215 110] ) ] else_action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:count) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(find)} {(.)} {(-newer)} {($ VSub_Name '$timestamp')} {(-type)} {(f)} {(-print)} ) (C {(wc)} {(-l)}) ] negated: False ) ] ) left_token: <Left_CommandSub '$('> spids: [165 185] ) } spids: [164] ) ] spids: [164] ) ] spids: [161 187] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {($ VSub_Name '$count')} {(-eq)} {(0)} {(Lit_Other ']')}) terminator: <Op_Semi ';'> ) ] action: [ (Sentence child: (C {(echo)} { (DQ (CommandSubPart command_list: (CommandList children: [(C {(basename)} {($ VSub_Number '$0')})] ) left_token: <Left_CommandSub '$('> spids: [210 214] ) (': No files found in ') ($ VSub_Name '$localsource') (' to sync with remote.') ) } ) terminator: <Op_Semi ';'> ) (C {(exit)} {(0)}) ] spids: [16777215 204] ) ] spids: [16777215 225] ) (C {(echo)} {(DQ ('Making tarball archive file for upload'))}) (C {(tar)} {(-czf)} {($ VSub_Name '$tarballname')} {(./) (Lit_Other '*')}) (C {(exec)} {(sftpsync)} {($ VSub_Name '$sftpacct')} {($ VSub_Name '$remotedir')}) ] )