(CommandList
  children: [
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:currentVersion) op:Equal rhs:{(DQ (1.11.1))} spids:[20])]
      spids: [20]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:configuredClient) op:Equal rhs:{(DQ )} spids:[25])]
      spids: [25]
    )
    (FuncDef
      name: getConfiguredClient
      body: 
        (BraceGroup
          children: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: (C {(command)} {(-v)} {(curl)})
                      terminator: <Op_Amp '&'>
                    )
                    (Sentence
                      child: 
                        (SimpleCommand
                          redirects: [
                            (Redir
                              op_id: Redir_Great
                              fd: 16777215
                              arg_word: {(/dev/null)}
                              spids: [49]
                            )
                          ]
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:configuredClient)
                          op: Equal
                          rhs: {(DQ (curl))}
                          spids: [57]
                        )
                      ]
                      spids: [57]
                    )
                  ]
                  spids: [16777215 54]
                )
                (if_arm
                  cond: [
                    (Sentence
                      child: (C {(command)} {(-v)} {(wget)})
                      terminator: <Op_Amp '&'>
                    )
                    (Sentence
                      child: 
                        (SimpleCommand
                          redirects: [
                            (Redir
                              op_id: Redir_Great
                              fd: 16777215
                              arg_word: {(/dev/null)}
                              spids: [72]
                            )
                          ]
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:configuredClient)
                          op: Equal
                          rhs: {(DQ (wget))}
                          spids: [80]
                        )
                      ]
                      spids: [80]
                    )
                  ]
                  spids: [63 77]
                )
                (if_arm
                  cond: [
                    (Sentence
                      child: (C {(command)} {(-v)} {(fetch)})
                      terminator: <Op_Amp '&'>
                    )
                    (Sentence
                      child: 
                        (SimpleCommand
                          redirects: [
                            (Redir
                              op_id: Redir_Great
                              fd: 16777215
                              arg_word: {(/dev/null)}
                              spids: [95]
                            )
                          ]
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:configuredClient)
                          op: Equal
                          rhs: {(DQ (fetch))}
                          spids: [103]
                        )
                      ]
                      spids: [103]
                    )
                  ]
                  spids: [86 100]
                )
              ]
              else_action: [
                (C {(echo)} 
                  {(DQ ('Error: This tool reqires either curl, wget, or fetch to be installed.'))}
                )
                (ControlFlow token:<ControlFlow_Return return> arg_word:{(1)})
              ]
              spids: [109 124]
            )
          ]
          spids: [37]
        )
      spids: [33 36]
    )
    (FuncDef
      name: httpGet
      body: 
        (BraceGroup
          children: [
            (Case
              to_match: {(DQ ($ VSub_Name '$configuredClient'))}
              arms: [
                (case_arm
                  pat_list: [{(curl)}]
                  action: [(C {(curl)} {(-A)} {(curl)} {(-s)} {(DQ ($ VSub_At '$@'))})]
                  spids: [149 150 163 16777215]
                )
                (case_arm
                  pat_list: [{(wget)}]
                  action: [(C {(wget)} {(-qO-)} {(DQ ($ VSub_At '$@'))})]
                  spids: [166 167 176 16777215]
                )
                (case_arm
                  pat_list: [{(fetch)}]
                  action: [(C {(fetch)} {(-o)} {(DQ (...))})]
                  spids: [179 180 189 16777215]
                )
              ]
              spids: [140 146 192]
            )
          ]
          spids: [137]
        )
      spids: [133 136]
    )
    (FuncDef
      name: usage
      body: 
        (BraceGroup
          children: [
            (C {(echo)} {(DQ (Geo))})
            (C {(echo)} 
              {
                (DQ 
                  (
'Description: Provides quick access for wan, lan, router, dns, mac, and ip geolocation data'
                  )
                )
              }
            )
            (C {(echo)} {(DQ ('Usage: geo [flag]'))})
            (C {(echo)} {(DQ ('  -w  Returns WAN IP'))})
            (C {(echo)} {(DQ ('  -l  Returns LAN IP(s)'))})
            (C {(echo)} {(DQ ('  -r  Returns Router IP'))})
            (C {(echo)} {(DQ ('  -d  Returns DNS Nameserver'))})
            (C {(echo)} {(DQ ('  -m  Returns MAC address for interface. Ex. eth0'))})
            (C {(echo)} {(DQ ('  -g  Returns Current IP Geodata'))})
            (C {(echo)} {(DQ ('Examples:'))})
            (C {(echo)} {(DQ ('  geo -g'))})
            (C {(echo)} {(DQ ('  geo -wlrdgm eth0'))})
            (C {(echo)} {(DQ ('Custom Geo Output =>'))})
            (C {(echo)} {(DQ ('[all] [query] [city] [region] [country] [zip] [isp]'))})
            (C {(echo)} {(DQ ('Example: geo -a 8.8.8.8 -o city,zip,isp'))})
            (C {(echo)} {(DQ ('  -o  [options] Returns Specific Geodata'))})
            (C {(echo)} {(DQ ('  -a  [address] For specific ip in -s'))})
            (C {(echo)} {(DQ ('  -v  Returns Version'))})
            (C {(echo)} {(DQ ('  -h  Returns Help Screen'))})
            (C {(echo)} {(DQ ('  -u  Updates Bash-Snippets'))})
            (C {(exit)})
          ]
          spids: [203]
        )
      spids: [199 202]
    )
    (FuncDef
      name: version
      body: 
        (BraceGroup
          children: [
            (Sentence
              child: (C {(echo)} {(DQ ('Version ') ($ VSub_Name '$currentVersion'))})
              terminator: <Op_Semi ';'>
            )
          ]
          spids: [358]
        )
      spids: [354 357]
    )
    (FuncDef
      name: wan_search
      body: 
        (BraceGroup
          children: [
            (C {(dig)} {(Lit_Other '+') (short)} {(myip.opendns.com)} 
              {(Lit_Other '@') (resolver1.opendns.com)}
            )
          ]
          spids: [379]
        )
      spids: [375 378]
    )
    (FuncDef
      name: lan_search
      body: 
        (BraceGroup
          children: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (C {(Lit_Other '[')} 
                          {
                            (DQ 
                              (CommandSubPart
                                command_list: (CommandList children:[(C {(uname)})])
                                left_token: <Left_CommandSub '$('>
                                spids: [410 412]
                              )
                            )
                          } {(Lit_Other '=')} {(DQ (Darwin))} {(Lit_Other ']')}
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Pipeline
                      children: [
                        (C {(ifconfig)})
                        (C {(grep)} {(-Eo)} {(SQ <'inet (addr:)?([0-9]*\\.){3}[0-9]*'>)})
                        (C {(grep)} {(-Eo)} {(SQ <'([0-9]*\\.){3}[0-9]*'>)})
                        (C {(grep)} {(-v)} {(SQ <127.0.0.1>)})
                      ]
                      negated: False
                    )
                  ]
                  spids: [16777215 424]
                )
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (C {(Lit_Other '[')} 
                          {
                            (DQ 
                              (CommandSubPart
                                command_list: (CommandList children:[(C {(uname)} {(-s)})])
                                left_token: <Left_CommandSub '$('>
                                spids: [465 469]
                              )
                            )
                          } {(Lit_Other '=')} {(DQ (Linux))} {(Lit_Other ']')}
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Pipeline
                      children: [
                        (C {(ip)} {(addr)} {(show)})
                        (C {(grep)} {(-Eo)} {(SQ <'inet (addr:)?([0-9]*\\.){3}[0-9]*'>)})
                        (C {(grep)} {(-Eo)} {(SQ <'([0-9]*\\.){3}[0-9]*'>)})
                        (C {(grep)} {(-v)} {(SQ <127.0.0.1>)})
                      ]
                      negated: False
                    )
                  ]
                  spids: [460 481]
                )
              ]
              else_action: [(C {(echo)} {(DQ ('OS not supported'))}) (C {(exit)} {(1)})]
              spids: [521 536]
            )
          ]
          spids: [402]
        )
      spids: [398 401]
    )
    (FuncDef
      name: router_search
      body: 
        (BraceGroup
          children: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (C {(Lit_Other '[')} 
                          {
                            (DQ 
                              (CommandSubPart
                                command_list: (CommandList children:[(C {(uname)})])
                                left_token: <Left_CommandSub '$('>
                                spids: [556 558]
                              )
                            )
                          } {(Lit_Other '=')} {(DQ (Darwin))} {(Lit_Other ']')}
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Pipeline
                      children: [
                        (C {(netstat)} {(-rn)})
                        (C {(grep)} {(default)})
                        (C {(head)} {(-1)})
                        (C {(awk)} {(SQ <'{print$2}'>)})
                      ]
                      negated: False
                    )
                  ]
                  spids: [16777215 570]
                )
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (C {(Lit_Other '[')} 
                          {
                            (DQ 
                              (CommandSubPart
                                command_list: (CommandList children:[(C {(uname)} {(-s)})])
                                left_token: <Left_CommandSub '$('>
                                spids: [603 607]
                              )
                            )
                          } {(Lit_Other '=')} {(DQ (Linux))} {(Lit_Other ']')}
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Pipeline
                      children: [
                        (C {(ip)} {(route)})
                        (C {(grep)} {(Lit_Other '^') (default) (SQ <'\\s'>) (via)})
                        (C {(head)} {(-1)})
                        (C {(awk)} {(SQ <'{print$3}'>)})
                      ]
                      negated: False
                    )
                  ]
                  spids: [598 619]
                )
              ]
              else_action: [(C {(echo)} {(DQ ('OS not supported'))}) (C {(exit)} {(1)})]
              spids: [652 667]
            )
          ]
          spids: [548]
        )
      spids: [544 547]
    )
    (FuncDef
      name: dns_search
      body: 
        (BraceGroup
          children: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (C {(Lit_Other '[')} 
                          {
                            (DQ 
                              (CommandSubPart
                                command_list: (CommandList children:[(C {(uname)})])
                                left_token: <Left_CommandSub '$('>
                                spids: [687 689]
                              )
                            )
                          } {(Lit_Other '=')} {(DQ (Darwin))} {(Lit_Other ']')}
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Pipeline
                      children: [
                        (C {(grep)} {(-i)} {(nameserver)} {(/etc/resolv.conf)})
                        (C {(head)} {(-n1)})
                        (C {(cut)} {(-d)} {(SQ <' '>)} {(-f2)})
                      ]
                      negated: False
                    )
                  ]
                  spids: [16777215 701]
                )
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (C {(Lit_Other '[')} 
                          {
                            (DQ 
                              (CommandSubPart
                                command_list: (CommandList children:[(C {(uname)} {(-s)})])
                                left_token: <Left_CommandSub '$('>
                                spids: [733 737]
                              )
                            )
                          } {(Lit_Other '=')} {(DQ (Linux))} {(Lit_Other ']')}
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Pipeline
                      children: [
                        (C {(cat)} {(/etc/resolv.conf)})
                        (C {(grep)} {(-i)} {(Lit_Other '^') (nameserver)})
                        (C {(cut)} {(-d)} {(SQ <' '>)} {(-f2)})
                      ]
                      negated: False
                    )
                  ]
                  spids: [728 749]
                )
              ]
              else_action: [(C {(echo)} {(DQ ('OS not supported'))}) (C {(exit)} {(1)})]
              spids: [778 793]
            )
          ]
          spids: [679]
        )
      spids: [675 678]
    )
    (FuncDef
      name: mac_search
      body: 
        (BraceGroup
          children: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (C {(Lit_Other '[')} 
                          {
                            (DQ 
                              (CommandSubPart
                                command_list: (CommandList children:[(C {(uname)})])
                                left_token: <Left_CommandSub '$('>
                                spids: [813 815]
                              )
                            )
                          } {(Lit_Other '=')} {(DQ (Darwin))} {(Lit_Other ']')}
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Pipeline
                      children: [
                        (C {(ifconfig)} {(DQ ($ VSub_Name '$MAC'))})
                        (C {(grep)} {(-o)} {(-E)} {(SQ <'([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}'>)})
                      ]
                      negated: False
                    )
                  ]
                  spids: [16777215 827]
                )
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (C {(Lit_Other '[')} 
                          {
                            (DQ 
                              (CommandSubPart
                                command_list: (CommandList children:[(C {(uname)} {(-s)})])
                                left_token: <Left_CommandSub '$('>
                                spids: [854 858]
                              )
                            )
                          } {(Lit_Other '=')} {(DQ (Linux))} {(Lit_Other ']')}
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Pipeline
                      children: [
                        (C {(ip)} {(addr)} {(show)} {(DQ ($ VSub_Name '$MAC'))})
                        (C {(grep)} {(-o)} {(-E)} {(SQ <'([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}'>)})
                        (C {(grep)} {(-v)} {(ff) (Lit_Other ':')})
                      ]
                      negated: False
                    )
                  ]
                  spids: [849 870]
                )
              ]
              else_action: [(C {(echo)} {(DQ ('OS not supported'))}) (C {(exit)} {(1)})]
              spids: [905 920]
            )
          ]
          spids: [805]
        )
      spids: [801 804]
    )
    (FuncDef
      name: geodata_search
      body: 
        (BraceGroup
          children: [
            (C {(httpGet)} {(DQ ('http://ip-api.com/line/?fields=query,city,region,country,zip,isp'))})
          ]
          spids: [932]
        )
      spids: [928 931]
    )
    (FuncDef
      name: specific_geo
      body: 
        (BraceGroup
          children: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (C {(Lit_Other '[')} {(DQ ($ VSub_Name '$OPTIONS'))} {(Lit_Other '=')} 
                          {(DQ (all))} {(Lit_Other ']')}
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (C {(httpGet)} 
                      {
                        (DQ ('http://ip-api.com/line/') (${ VSub_Name ADDRESS) 
                          ('?fields=query,city,region,country,zip,isp')
                        )
                      }
                    )
                  ]
                  spids: [16777215 971]
                )
              ]
              else_action: [
                (C {(httpGet)} 
                  {
                    (DQ ('http://ip-api.com/line/') (${ VSub_Name ADDRESS) ('?fields=') 
                      (${ VSub_Name OPTIONS)
                    )
                  }
                )
              ]
              spids: [985 1002]
            )
          ]
          spids: [951]
        )
      spids: [947 950]
    )
    (FuncDef
      name: update
      body: 
        (BraceGroup
          children: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:repositoryName)
                  op: Equal
                  rhs: {(DQ (Bash-Snippets))}
                  spids: [1027]
                )
              ]
              spids: [1027]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:githubUserName)
                  op: Equal
                  rhs: {(DQ (alexanderepstein))}
                  spids: [1036]
                )
              ]
              spids: [1036]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:nameOfInstallFile)
                  op: Equal
                  rhs: {(DQ (install.sh))}
                  spids: [1045]
                )
              ]
              spids: [1045]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:latestVersion)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (Pipeline
                                children: [
                                  (C {(httpGet)} 
                                    {(https) (Lit_Other ':') (//api.github.com/repos/) 
                                      ($ VSub_Name '$githubUserName') (/) ($ VSub_Name '$repositoryName') (/tags)
                                    }
                                  )
                                  (C {(grep)} {(-Eo)} {(SQ <'"name":.*?[^\\\\]",'>)})
                                  (C {(head)} {(-1)})
                                  (C {(grep)} {(-Eo)} {(DQ ('[0-9.]+'))})
                                ]
                                negated: False
                              )
                            ]
                          )
                        left_token: <Left_CommandSub '$('>
                        spids: [1055 1091]
                      )
                    }
                  spids: [1054]
                )
              ]
              spids: [1054]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (DBracket
                          expr: 
                            (LogicalOr
                              left: 
                                (BoolBinary
                                  op_id: BoolBinary_GlobDEqual
                                  left: {($ VSub_Name '$currentVersion')}
                                  right: {(DQ )}
                                )
                              right: 
                                (LogicalOr
                                  left: 
                                    (BoolBinary
                                      op_id: BoolBinary_GlobDEqual
                                      left: {($ VSub_Name '$repositoryName')}
                                      right: {(DQ )}
                                    )
                                  right: 
                                    (LogicalOr
                                      left: 
                                        (BoolBinary
                                          op_id: BoolBinary_GlobDEqual
                                          left: {($ VSub_Name '$githubUserName')}
                                          right: {(DQ )}
                                        )
                                      right: 
                                        (BoolBinary
                                          op_id: BoolBinary_GlobDEqual
                                          left: {($ VSub_Name '$nameOfInstallFile')}
                                          right: {(DQ )}
                                        )
                                    )
                                )
                            )
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (SimpleCommand
                      words: [
                        {(echo)}
                        {(DQ ('Error: update utility has not been configured correctly.'))}
                      ]
                      redirects: [
                        (Redir
                          op_id: Redir_GreatAnd
                          fd: 16777215
                          arg_word: {(2)}
                          spids: [1147]
                        )
                      ]
                    )
                    (C {(exit)} {(1)})
                  ]
                  spids: [16777215 1138]
                )
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (DBracket
                          expr: 
                            (BoolBinary
                              op_id: BoolBinary_GlobDEqual
                              left: {($ VSub_Name '$latestVersion')}
                              right: {(DQ )}
                            )
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (SimpleCommand
                      words: [{(echo)} {(DQ ('Error: no active internet connection'))}]
                      redirects: [
                        (Redir
                          op_id: Redir_GreatAnd
                          fd: 16777215
                          arg_word: {(2)}
                          spids: [1178]
                        )
                      ]
                    )
                    (C {(exit)} {(1)})
                  ]
                  spids: [1156 1169]
                )
              ]
              else_action: [
                (If
                  arms: [
                    (if_arm
                      cond: [
                        (Sentence
                          child: 
                            (DBracket
                              expr: 
                                (BoolBinary
                                  op_id: BoolBinary_GlobNEqual
                                  left: {(DQ ($ VSub_Name '$latestVersion'))}
                                  right: {(DQ ($ VSub_Name '$currentVersion'))}
                                )
                            )
                          terminator: <Op_Semi ';'>
                        )
                      ]
                      action: [
                        (C {(echo)} {(DQ ('Version ') ($ VSub_Name '$latestVersion') (' available'))})
                        (C {(echo)} {(-n)} 
                          {
                            (DQ ('Do you wish to update ') ($ VSub_Name '$repositoryName') (' [Y/n]: '))
                          }
                        )
                        (C {(read)} {(-r)} {(answer)})
                        (If
                          arms: [
                            (if_arm
                              cond: [
                                (Sentence
                                  child: 
                                    (DBracket
                                      expr: 
                                        (LogicalOr
                                          left: 
                                            (BoolBinary
                                              op_id: BoolBinary_GlobDEqual
                                              left: {(DQ ($ VSub_Name '$answer'))}
                                              right: {(DQ (Y))}
                                            )
                                          right: 
                                            (BoolBinary
                                              op_id: BoolBinary_GlobDEqual
                                              left: {(DQ ($ VSub_Name '$answer'))}
                                              right: {(DQ (y))}
                                            )
                                        )
                                    )
                                  terminator: <Op_Semi ';'>
                                )
                              ]
                              action: [
                                (AndOr
                                  children: [
                                    (C {(cd)} {(TildeSubPart prefix:'')})
                                    (BraceGroup
                                      children: [
                                        (Sentence
                                          child: (C {(echo)} {(SQ <'Update Failed'>)})
                                          terminator: <Op_Semi ';'>
                                        )
                                        (Sentence
                                          child: (C {(exit)} {(1)})
                                          terminator: <Op_Semi ';'>
                                        )
                                      ]
                                      spids: [1275]
                                    )
                                  ]
                                  op_id: Op_DPipe
                                )
                                (If
                                  arms: [
                                    (if_arm
                                      cond: [
                                        (Sentence
                                          child: 
                                            (DBracket
                                              expr: 
                                                (BoolUnary
                                                  op_id: BoolUnary_d
                                                  child: 
                                                    {(Lit_Tilde '~') (/) 
                                                      ($ VSub_Name '$repositoryName')
                                                    }
                                                )
                                            )
                                          terminator: <Op_Semi ';'>
                                        )
                                      ]
                                      action: [
                                        (Sentence
                                          child: 
                                            (AndOr
                                              children: [
                                                (C {(rm)} {(-r)} {(-f)} {($ VSub_Name '$repositoryName')})
                                                (BraceGroup
                                                  children: [
                                                    (Sentence
                                                      child: 
                                                        (C {(echo)} 
                                                          {
                                                            (DQ 
                                                              (
'Permissions Error: try running the update as sudo'
                                                              )
                                                            )
                                                          }
                                                        )
                                                      terminator: <Op_Semi ';'>
                                                    )
                                                    (Sentence
                                                      child: (C {(exit)} {(1)})
                                                      terminator: <Op_Semi ';'>
                                                    )
                                                  ]
                                                  spids: [1319]
                                                )
                                              ]
                                              op_id: Op_DPipe
                                            )
                                          terminator: <Op_Semi ';'>
                                        )
                                      ]
                                      spids: [16777215 1307]
                                    )
                                  ]
                                  spids: [16777215 1337]
                                )
                                (AndOr
                                  children: [
                                    (C {(git)} {(clone)} 
                                      {
                                        (DQ ('https://github.com/') ($ VSub_Name '$githubUserName') (/) 
                                          ($ VSub_Name '$repositoryName')
                                        )
                                      }
                                    )
                                    (BraceGroup
                                      children: [
                                        (Sentence
                                          child: 
                                            (C {(echo)} {(DQ ("Couldn't download latest version"))})
                                          terminator: <Op_Semi ';'>
                                        )
                                        (Sentence
                                          child: (C {(exit)} {(1)})
                                          terminator: <Op_Semi ';'>
                                        )
                                      ]
                                      spids: [1353]
                                    )
                                  ]
                                  op_id: Op_DPipe
                                )
                                (AndOr
                                  children: [
                                    (C {(cd)} {($ VSub_Name '$repositoryName')})
                                    (BraceGroup
                                      children: [
                                        (Sentence
                                          child: (C {(echo)} {(SQ <'Update Failed'>)})
                                          terminator: <Op_Semi ';'>
                                        )
                                        (Sentence
                                          child: (C {(exit)} {(1)})
                                          terminator: <Op_Semi ';'>
                                        )
                                      ]
                                      spids: [1377]
                                    )
                                  ]
                                  op_id: Op_DPipe
                                )
                                (AndOr
                                  children: [
                                    (SimpleCommand
                                      words: [
                                        {(git)}
                                        {(checkout)}
                                        {(DQ (v) ($ VSub_Name '$latestVersion'))}
                                      ]
                                      redirects: [
                                        (Redir
                                          op_id: Redir_Great
                                          fd: 2
                                          arg_word: {(/dev/null)}
                                          spids: [1404]
                                        )
                                      ]
                                    )
                                    (AndOr
                                      children: [
                                        (SimpleCommand
                                          words: [
                                            {(git)}
                                            {(checkout)}
                                            {(DQ ($ VSub_Name '$latestVersion'))}
                                          ]
                                          redirects: [
                                            (Redir
                                              op_id: Redir_Great
                                              fd: 2
                                              arg_word: {(/dev/null)}
                                              spids: [1418]
                                            )
                                          ]
                                        )
                                        (C {(echo)} 
                                          {
                                            (DQ 
                                              (
"Couldn't git checkout to stable release, updating to latest commit."
                                              )
                                            )
                                          }
                                        )
                                      ]
                                      op_id: Op_DPipe
                                    )
                                  ]
                                  op_id: Op_DPipe
                                )
                                (C {(chmod)} {(a) (Lit_Other '+') (x)} {(install.sh)})
                                (AndOr
                                  children: [
                                    (C {(./) ($ VSub_Name '$nameOfInstallFile')} {(DQ (update))})
                                    (C {(exit)} {(1)})
                                  ]
                                  op_id: Op_DPipe
                                )
                                (C {(cd)} {(..)})
                                (AndOr
                                  children: [
                                    (C {(rm)} {(-r)} {(-f)} {($ VSub_Name '$repositoryName')})
                                    (BraceGroup
                                      children: [
                                        (Sentence
                                          child: 
                                            (C {(echo)} 
                                              {
                                                (DQ 
                                                  (
'Permissions Error: update succesfull but cannot delete temp files located at ~/'
                                                  ) ($ VSub_Name '$repositoryName') (' delete this directory with sudo')
                                                )
                                              }
                                            )
                                          terminator: <Op_Semi ';'>
                                        )
                                        (Sentence
                                          child: (C {(exit)} {(1)})
                                          terminator: <Op_Semi ';'>
                                        )
                                      ]
                                      spids: [1472]
                                    )
                                  ]
                                  op_id: Op_DPipe
                                )
                              ]
                              spids: [16777215 1266]
                            )
                          ]
                          else_action: [(C {(exit)} {(1)})]
                          spids: [1491 1499]
                        )
                      ]
                      spids: [16777215 1207]
                    )
                  ]
                  else_action: [
                    (C {(echo)} 
                      {(DQ ($ VSub_Name '$repositoryName') (' is already the latest version'))}
                    )
                  ]
                  spids: [1502 1513]
                )
              ]
              spids: [1187 1516]
            )
          ]
          spids: [1012]
        )
      spids: [1008 1011]
    )
    (FuncDef
      name: checkInternet
      body: 
        (BraceGroup
          children: [
            (Pipeline
              children: [
                (C {(echo)} 
                  {(DQ ('GET http://google.com HTTP/1.0') (Lit_Other '\\') (n) (Lit_Other '\\') (n))}
                )
                (SimpleCommand
                  words: [{(nc)} {(google.com)} {(80)}]
                  redirects: [
                    (Redir
                      op_id: Redir_Great
                      fd: 16777215
                      arg_word: {(/dev/null)}
                      spids: [1549]
                    )
                    (Redir op_id:Redir_GreatAnd fd:2 arg_word:{(1)} spids:[1553])
                  ]
                )
              ]
              negated: False
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (C {(Lit_Other '[')} {($ VSub_QMark '$?')} {(-eq)} {(0)} {(Lit_Other ']')})
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [(ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})]
                  spids: [16777215 1573]
                )
              ]
              else_action: [
                (SimpleCommand
                  words: [{(echo)} {(DQ ('Error: no active internet connection'))}]
                  redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[1593])]
                )
                (ControlFlow token:<ControlFlow_Return return> arg_word:{(1)})
              ]
              spids: [1584 1605]
            )
          ]
          spids: [1528]
        )
      spids: [1524 1527]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:optspec)
          op: Equal
          rhs: {(DQ ('uwlrdm:go:a:vh*:'))}
          spids: [1614]
        )
      ]
      spids: [1614]
    )
    (While
      cond: [(C {(getopts)} {(DQ ($ VSub_Name '$optspec'))} {(optchar)})]
      body: 
        (DoGroup
          children: [
            (Case
              to_match: {(DQ (${ VSub_Name optchar))}
              arms: [
                (case_arm
                  pat_list: [{(w)}]
                  action: [(C {(wan_search)})]
                  spids: [1643 1644 1648 16777215]
                )
                (case_arm
                  pat_list: [{(l)}]
                  action: [(C {(lan_search)})]
                  spids: [1651 1652 1656 16777215]
                )
                (case_arm
                  pat_list: [{(r)}]
                  action: [(C {(router_search)})]
                  spids: [1659 1660 1664 16777215]
                )
                (case_arm
                  pat_list: [{(d)}]
                  action: [(C {(dns_search)})]
                  spids: [1667 1668 1672 16777215]
                )
                (case_arm
                  pat_list: [{(m)}]
                  action: [
                    (SimpleCommand
                      words: [{(mac_search)}]
                      more_env: [(env_pair name:MAC val:{($ VSub_Name '$OPTARG')} spids:[1678])]
                    )
                  ]
                  spids: [1675 1676 1682 16777215]
                )
                (case_arm
                  pat_list: [{(g)}]
                  action: [
                    (AndOr
                      children: [
                        (C {(getConfiguredClient)})
                        (AndOr
                          children: [
                            (C {(checkInternet)})
                            (AndOr
                              children: [(C {(geodata_search)}) (C {(exit)} {(1)})]
                              op_id: Op_DPipe
                            )
                          ]
                          op_id: Op_DAmp
                        )
                      ]
                      op_id: Op_DAmp
                    )
                  ]
                  spids: [1685 1686 1704 16777215]
                )
                (case_arm
                  pat_list: [{(a)}]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:ADDRESS)
                          op: Equal
                          rhs: {($ VSub_Name '$OPTARG')}
                          spids: [1710]
                        )
                      ]
                      spids: [1710]
                    )
                  ]
                  spids: [1707 1708 1713 16777215]
                )
                (case_arm
                  pat_list: [{(o)}]
                  action: [
                    (AndOr
                      children: [
                        (C {(getConfiguredClient)})
                        (AndOr
                          children: [
                            (C {(checkInternet)})
                            (AndOr
                              children: [
                                (SimpleCommand
                                  words: [{(specific_geo)}]
                                  more_env: [
                                    (env_pair
                                      name: OPTIONS
                                      val: {($ VSub_Name '$OPTARG')}
                                      spids: [1727]
                                    )
                                  ]
                                )
                                (C {(exit)} {(1)})
                              ]
                              op_id: Op_DPipe
                            )
                          ]
                          op_id: Op_DAmp
                        )
                      ]
                      op_id: Op_DAmp
                    )
                  ]
                  spids: [1716 1717 1738 16777215]
                )
                (case_arm
                  pat_list: [{(v)}]
                  action: [(C {(version)})]
                  spids: [1741 1742 1746 16777215]
                )
                (case_arm
                  pat_list: [{(h)}]
                  action: [(C {(usage)})]
                  spids: [1749 1750 1754 16777215]
                )
                (case_arm
                  pat_list: [{(u)}]
                  action: [
                    (AndOr
                      children: [
                        (C {(getConfiguredClient)})
                        (AndOr
                          children: [
                            (C {(checkInternet)})
                            (AndOr
                              children: [(C {(update)}) (C {(exit)} {(1)})]
                              op_id: Op_DPipe
                            )
                          ]
                          op_id: Op_DAmp
                        )
                      ]
                      op_id: Op_DAmp
                    )
                  ]
                  spids: [1757 1758 1776 16777215]
                )
                (case_arm
                  pat_list: [{(Lit_Other '*')}]
                  action: [(C {(usage)})]
                  spids: [1779 1780 1784 16777215]
                )
              ]
              spids: [1632 1640 1787]
            )
          ]
          spids: [1629 1789]
        )
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(Lit_Other '[')} {($ VSub_Pound '$#')} {(-eq)} {(0)} {(Lit_Other ']')})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [(C {(usage)}) (C {(exit)} {(0)})]
          spids: [16777215 1808]
        )
        (if_arm
          cond: [
            (Sentence
              child: 
                (DBracket
                  expr: 
                    (BoolBinary
                      op_id: BoolBinary_GlobDEqual
                      left: {($ VSub_Number '$1')}
                      right: {(DQ (update))}
                    )
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (AndOr
              children: [
                (C {(getConfiguredClient)})
                (AndOr
                  children: [
                    (C {(checkInternet)})
                    (AndOr
                      children: [(C {(update)}) (C {(exit)} {(1)})]
                      op_id: Op_DPipe
                    )
                  ]
                  op_id: Op_DAmp
                )
              ]
              op_id: Op_DAmp
            )
          ]
          spids: [1818 1832]
        )
        (if_arm
          cond: [
            (Sentence
              child: 
                (DBracket
                  expr: 
                    (BoolBinary
                      op_id: BoolBinary_GlobDEqual
                      left: {($ VSub_Number '$1')}
                      right: {(DQ (help))}
                    )
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [(C {(usage)}) (C {(exit)} {(0)})]
          spids: [1851 1865]
        )
      ]
      spids: [16777215 1875]
    )
  ]
)